Skip to content

Commit 97f3ead

Browse files
rlystephprince
andauthored
Allow EventDetection` to store channel index (#620)
Co-authored-by: Steph Prince <[email protected]>
1 parent 362c095 commit 97f3ead

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

core/nwb.ecephys.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,16 @@ groups:
161161
- name: source_idx
162162
dtype: int32
163163
dims:
164-
- num_events
164+
- - num_events
165+
- - num_events
166+
- time_index, channel_index
165167
shape:
166-
- null
167-
doc: Indices (zero-based) into source ElectricalSeries::data array corresponding
168-
to time of event. ''description'' should define what is meant by time of
169-
event (e.g., .25 ms before action potential peak, zero-crossing time, etc).
168+
- - null
169+
- - null
170+
- 2
171+
doc: Indices (zero-based) into the linked source ElectricalSeries::data array corresponding
172+
to time of event or time and channel of event. ''description'' should define what is meant
173+
by time of event (e.g., .25 ms before action potential peak, zero-crossing time, etc).
170174
The index points to each event from the raw data.
171175
- name: times
172176
dtype: float64
@@ -180,6 +184,7 @@ groups:
180184
dtype: text
181185
value: seconds
182186
doc: Unit of measurement for event times, which is fixed to 'seconds'.
187+
quantity: '?'
183188
links:
184189
- name: source_electricalseries
185190
target_type: ElectricalSeries

docs/format/source/format_release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ Major changes
1313
- Changed ``NWBFile.electrodes`` from a generic ``DynamicTable`` with added columns to a new ``ElectrodesTable``
1414
neurodata type that extends ``DynamicTable`` with added columns. (#539, #624)
1515
- Changed ``DecompositionSeries.bands`` from a generic ``DynamicTable`` with added columns to a new ``FrequencyBandsTable`` neurodata type that extends ``DynamicTable`` with added columns. (#610)
16+
- Allowed `EventDetection` to have shape (num_events, 2) to store the channel index of the detected event. (#620)
1617

1718
Minor changes
1819
^^^^^^^^^^^^^
1920
- Made group quantities consistent ("1 or more") across data interfaces / wrapper types (#613)
2021
- Fixed typo and removed HTML tag from doc of behavioral neurodata types. (#600)
22+
- Made `EventDetection.times` optional. (#620)
2123

2224
2.8.0 (November 24, 2024)
2325
-------------------------

0 commit comments

Comments
 (0)