cannot change shape of dataset once written #918
Labels
category: enhancement
improvements of code or code behavior
priority: medium
non-critical problem and/or affecting only a small set of NWB users
Feature Request
According to the documentation, the pynwb.epoch.TimeIntervals class accepts several data formats (ndarray or list or tuple or Dataset or AbstractDataChunkIterator or HDMFDataset), but the methods to add new intervals only works for lists.
Problem/Use Case
In an instance with invalid intervals values initiated from an HDF5 file, the methods for adding new intervals won’t work. I tried it with 3 different methods:
All raise the AttributeError: 'Dataset' object has no attribute 'append', from different locations inside the ‘core.py’ module.
Here's a reproducible example:
This will raise the following
It seems to me we should be testing the data format before the append() method, in different places of core.py.
Checklist
The text was updated successfully, but these errors were encountered: