Skip to content

[Feature]: Support editing data "in place" for datasets that have been exported to file. #760

@ehennestad

Description

@ehennestad

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:

  1. Modify/overwrite data in file directly on assignment of new data to the DataStub
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions