ibllib.tests.extractors.test_ephys_fpga
Tests for ephys FPGA sync and FPGA wheel extraction.
Classes
Tests the infer_wheel_units function. |
|
Test FpgaTrials class. |
|
- class TestTTLsExtraction(methodName='runTest')[source]
Bases:
TestCase
- test_audio_ttl_wiring_camera()[source]
Test ephys_fpga._clean_audio function.
Test removal of spurious TTLs due to a wrong wiring of the camera onto the soundcard example eid: e349a2e7-50a3-47ca-bc45-20d1899854ec
- test_audio_ttl_start_up_down()[source]
If the behaviour starts before FPGA, it is very unlikely but possible that the FPGA starts on up state and that the first front of the audio is a downgoing one. The extraction should handle both cases seamlessly: cf eid d839491f-55d8-4cbe-a298-7839208ba12b
- class TestExtractedWheelUnits(methodName='runTest')[source]
Bases:
TestCase
Tests the infer_wheel_units function.
- wheel_radius_cm = 3.1
- class TestWheelMovesExtraction(methodName='runTest')[source]
Bases:
TestCase
- setUp() None [source]
Test data is in the form ((inputs), (outputs)) where inputs is a tuple containing a numpy array of timestamps and one of positions; outputs is a tuple of outputs from the functions. For details, see help on TestWheel.setUp method in module brainbox.tests.test_behavior