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_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.