allensdk.brain_observatory.ecephys.stimulus_sync module

allensdk.brain_observatory.ecephys.stimulus_sync.allocate_by_vsync(vs_diff, index, starts, ends, frame_duration, irregularity, cycle)[source]
allensdk.brain_observatory.ecephys.stimulus_sync.assign_to_last(index, starts, ends, frame_duration, irregularity, cycle)[source]
allensdk.brain_observatory.ecephys.stimulus_sync.compute_frame_times(photodiode_times, frame_duration, num_frames, cycle, irregular_interval_policy=<function assign_to_last at 0x7fcd9afce8c0>)[source]
allensdk.brain_observatory.ecephys.stimulus_sync.correct_on_off_effects(pd_times)[source]

Notes

This cannot (without additional info) determine whether an assymmetric offset is odd-long or even-long.

allensdk.brain_observatory.ecephys.stimulus_sync.estimate_frame_duration(pd_times, cycle=60)[source]
allensdk.brain_observatory.ecephys.stimulus_sync.fix_unexpected_edges(pd_times, ndevs=10, cycle=60, max_frame_offset=4)[source]
allensdk.brain_observatory.ecephys.stimulus_sync.flag_unexpected_edges(pd_times, ndevs=10)[source]
allensdk.brain_observatory.ecephys.stimulus_sync.trim_border_pulses(pd_times, vs_times, frame_interval=0.016666666666666666, num_frames=5)[source]
allensdk.brain_observatory.ecephys.stimulus_sync.trimmed_stats(data, pctiles=(10, 90))[source]