allensdk.brain_observatory.behavior.sync.process_sync module

allensdk.brain_observatory.behavior.sync.process_sync.calculate_delay(sync_data, stim_vsync_fall, sample_frequency)[source]
allensdk.brain_observatory.behavior.sync.process_sync.filter_digital(rising, falling, threshold=0.0001)[source]

Removes short transients from digital signal.

Rising and falling should be same length and units

in seconds.

Kwargs:

threshold (float): transient width