Skip to content

Commit cf13077

Browse files
authored
Allow EventDetection` to store channel index
1 parent 0c7896b commit cf13077

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Release Notes
99
Major changes
1010
^^^^^^^^^^^^^
1111
- Added `BaseImage` and `ExternalImage` as new neurodata types. The first so both `Image` and `ExternalImage` can inherit from it. The second to store external images (#604)
12+
- Allowed `EventDetection` to have shape (num_events, 2) to store the channel index of the detected event. ()
1213

1314
Minor changes
1415
^^^^^^^^^^^^^

0 commit comments

Comments
 (0)