Skip to content

Commit 12613e5

Browse files
authored
Merge pull request #1008 from NeurodataWithoutBorders/waveform_dims
change dims for Units waveform
2 parents 92a0463 + 8bc3a7e commit 12613e5

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

src/pynwb/data/nwb.misc.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,21 +253,33 @@ groups:
253253
neurodata_type_inc: VectorData
254254
dtype: float
255255
dims:
256-
- num_units
257-
- num_samples
256+
- - num_units
257+
- num_samples
258+
- - num_units
259+
- num_samples
260+
- num_electrodes
258261
shape:
259-
- null
260-
- null
262+
- - null
263+
- null
264+
- - null
265+
- null
266+
- null
261267
doc: the spike waveform mean for each spike unit
262268
quantity: '?'
263269
- name: waveform_sd
264270
neurodata_type_inc: VectorData
265271
dtype: float
266272
dims:
267-
- num_units
268-
- num_samples
273+
- - num_units
274+
- num_samples
275+
- - num_units
276+
- num_samples
277+
- num_electrodes
269278
shape:
270-
- null
271-
- null
279+
- - null
280+
- null
281+
- - null
282+
- null
283+
- null
272284
doc: the spike waveform standard deviation for each spike unit
273285
quantity: '?'

src/pynwb/misc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,11 @@ def __init__(self, **kwargs):
218218
'default': None},
219219
{'name': 'electrode_group', 'type': 'ElectrodeGroup', 'default': None,
220220
'doc': 'the electrode group that each unit came from'},
221-
{'name': 'waveform_mean', 'type': 'array_data', 'doc': 'the spike waveform mean for each unit',
221+
{'name': 'waveform_mean', 'type': 'array_data',
222+
'doc': 'the spike waveform mean for each unit. Shape is (time,) or (time, electrodes)',
222223
'default': None},
223224
{'name': 'waveform_sd', 'type': 'array_data', 'default': None,
224-
'doc': 'the spike waveform standard deviation for each unit'},
225+
'doc': 'the spike waveform standard deviation for each unit. Shape is (time,) or (time, electrodes)'},
225226
{'name': 'id', 'type': int, 'default': None,
226227
'help': 'the id for each unit'},
227228
allow_extra=True)

0 commit comments

Comments
 (0)