convnwb.utils.extract.get_event_time¶
- convnwb.utils.extract.get_event_time(event_times, start, end)[source]¶
Select a (single) event based on time range, returning NaN if not found.
- Parameters:
- event_times1d array
Event times.
- start, endfloat
Start and end times to select between.
- Returns:
- eventfloat or np.nan
The selected event time, if found, or NaN.