stytra.tests package

Submodules

stytra.tests.record_stimuli module

class stytra.tests.record_stimuli.RadialSine[source]

Bases: stytra.stimulation.Protocol

Demonstrates usage of luminance stimuli

name = 'radial_sine'
get_stim_sequence()[source]

To be specified in each child class to return the proper list of stimuli.

class stytra.tests.record_stimuli.FullFieldProtocol[source]

Bases: stytra.stimulation.Protocol

Demonstrates usage of luminance stimuli

name = 'full_field'
get_stim_sequence()[source]

To be specified in each child class to return the proper list of stimuli.

class stytra.tests.record_stimuli.OKRProtocol[source]

Bases: stytra.stimulation.Protocol

Demonstrates usage of OKR evoking windmill stimuli

name = 'okr'
get_stim_sequence()[source]

To be specified in each child class to return the proper list of stimuli.

class stytra.tests.record_stimuli.GratingProtocol[source]

Bases: stytra.stimulation.Protocol

name = 'grating'
get_stim_sequence()[source]

To be specified in each child class to return the proper list of stimuli.

class stytra.tests.record_stimuli.SeamlessImageProtocol[source]

Bases: stytra.stimulation.Protocol

name = 'seamless_image'
get_stim_sequence()[source]

To be specified in each child class to return the proper list of stimuli.

class stytra.tests.record_stimuli.GenerateStimuliMovie(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

waitend()[source]
test_stimulus_rendering()[source]

stytra.tests.test_base_exp_class module

class stytra.tests.test_base_exp_class.TestExperimentClass(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_experiment_class()[source]

stytra.tests.test_kalman module

stytra.tests.test_kalman.test_fish()[source]

Test fish Kalman updating with angle correction

stytra.tests.test_namedtuplequeue module

class stytra.tests.test_namedtuplequeue.TupProc(q)[source]

Bases: multiprocessing.context.Process

run()[source]

Method to be run in sub-process; can be overridden in sub-class

stytra.tests.test_namedtuplequeue.test_ntqueue()[source]

stytra.tests.test_online_bout_detection module

stytra.tests.test_online_bout_detection.test_online_bout_det()[source]

stytra.tests.test_pipeline module

class stytra.tests.test_pipeline.TestNode(*args, **kwargs)[source]

Bases: stytra.tracking.pipelines.ImageToDataNode

class stytra.tests.test_pipeline.TestPipeline[source]

Bases: stytra.tracking.pipelines.Pipeline

stytra.tests.test_pipeline.test_a_pipeline()[source]

stytra.tests.test_triggering module

class stytra.tests.test_triggering.DummyTrigger[source]

Bases: stytra.triggering.Trigger

check_trigger()[source]

Check condition required for triggering to happen. Implemented in subclasses.

Returns:True if triggering condition is satisfied (e.g., message received); False otherwise.
Return type:bool
class stytra.tests.test_triggering.TestProtocol[source]

Bases: stytra.stimulation.Protocol

name = 'test_protocol'
get_stim_sequence()[source]

To be specified in each child class to return the proper list of stimuli.

class stytra.tests.test_triggering.TestExperimentClass(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_experiment_class()[source]

Module contents