What would you like to see added to MatNWB?
Currently there is no support for editing values/data of datasets that have been written to file.
All non-scalar datasets are imported (on nwbRead) via the types.untyped.DataStub. This is a read-only interface to lazily read data from an NWB file.
One solution is to add write functionality to this class. It could have a private flag for whether data has been modified.
There are two alternatives for how to export data:
- Modify/overwrite data in file directly on assignment of new data to the DataStub
- Export data if nwbExport is called and the DataStub has modified data
NB. This should only support modifying existing data without modifying the dataset’s dimensions. For extendable datasets, the DataPipe is used.
Is your feature request related to a problem?
No response
What solution would you like?
Add "edit in place" functionality to types.untyped.DataStub
Do you have any interest in helping implement the feature?
Yes.
Code of Conduct