allensdk.brain_observatory.ecephys.align_timestamps.channel_states module¶
-
allensdk.brain_observatory.ecephys.align_timestamps.channel_states.
extract_barcodes_from_states
(channel_states, timestamps, sampling_rate, **barcode_kwargs)[source]¶ Obtain barcodes from timestamped rising/falling edges.
Parameters: - channel_states : numpy.ndarray
Rising and falling edges, denoted 1 and -1
- timestamps : numpy.ndarray
Sample index of each event.
- sampling_rate : numeric
Samples / second
- **barcode_kwargs :
Additional parameters describing the barcodes.
-
allensdk.brain_observatory.ecephys.align_timestamps.channel_states.
extract_splits_from_barcode_times
(barcode_times, tolerance=0.0001)[source]¶ Determine locations of likely dropped data from barcode times Parameters ———- barcode_times : numpy.ndarray
probe barcode times- tolerance : float
- Timing tolerance (relative to median interval)
-
allensdk.brain_observatory.ecephys.align_timestamps.channel_states.
extract_splits_from_states
(channel_states, timestamps, sampling_rate, **barcode_kwargs)[source]¶ Obtain data split times from timestamped rising/falling edges.
Parameters: - channel_states : numpy.ndarray
Rising and falling edges, denoted 1 and -1
- timestamps : numpy.ndarray
Sample index of each event.
- sampling_rate : numeric
Samples / second
- **barcode_kwargs :
Additional parameters describing the barcodes.