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 0x7f949b5ac6a8>)[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]¶