You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: electrodesneurodata_type_inc: DynamicTableRegiondoc: Electrode that each spike unit came from, specified using a DynamicTableRegion.quantity: '?'
...which doesn't match the accepted types in add_unit():
{'name': 'electrodes', 'type': 'array_data', 'doc': 'the electrodes that each unit came from',
'default': None},
..and just to check that DynamicTableRegion isn't an 'array_data' type:
Units.add_unit: incorrect type for 'electrodes' (got 'DynamicTableRegion', expected 'ndarray, list, tuple, Dataset, Array, StrDataset, HDMFDataset or AbstractDataChunkIterator')
Presumably this is expecting a sequence of integers, which are the indices of the corresponding rows in the electrodes table, but it's not clear: the description sounds more like links to the electrodes table.
The text was updated successfully, but these errors were encountered:
bjhardcastle
changed the title
electrodes column in misc.Units.add_unit() doesn't adhere to nwb-schemaelectrodes column in misc.Units.add_unit() doesn't adhere to nwb-schema
Nov 15, 2023
If I'm looking at the right thing, then the schema specifies the column as a
DynamicTableRegion
and the column in the units table should be a link to the electrodes table:https://github.com/NeurodataWithoutBorders/nwb-schema/blob/dev/core/nwb.misc.yaml#L219-L222
...which doesn't match the accepted types in
add_unit()
:pynwb/src/pynwb/misc.py
Lines 189 to 190 in eb58506
..and just to check that
DynamicTableRegion
isn't an'array_data'
type:Presumably this is expecting a sequence of integers, which are the indices of the corresponding rows in the electrodes table, but it's not clear: the description sounds more like links to the electrodes table.
The text was updated successfully, but these errors were encountered: