convnwb.timestamps.align.match_pulses¶
- convnwb.timestamps.align.match_pulses(sync_behav, sync_neural, n_pulses, start_offset=None)[source]¶
Match pulses to each other based on ISIs.
- Parameters:
- sync_behav, sync_neural1d array
Synchronization pulses from the behavioral and neural computers.
- n_pulsesint
The number of pulses to match by.
- start_offsetint, optional
Number of pulses to shift away from the start of the task recording.
- Returns:
- sync_behav_out, sync_neural_out1d array
Matched synchronization pulses from the behavioral and neural computers.
Notes
Using a start_offset can be useful if there are bad synchronization results due to recording pause at the start.