pynwb icon indicating copy to clipboard operation
pynwb copied to clipboard

Make `NWBFile.identifier` resetable before it is written

Open rly opened this issue 5 years ago • 0 comments

From @yarikoptic via slack

When constructing an NWBFile, identifier is required (but see #954 which suggests making it optional), and once set, it cannot be changed. This means the following workflow will not work:

create file instance, populate all data relevant, pass that instance to dandi's organize to figure out the file name given the data, assign that as identifier to the instance

@yarikoptic would like to be able to construct an NWBFile with a dummy identifier and update it later before writing the NWBFile.

Checklist

  • [x] Have you ensured the feature or change was not already reported?
  • [x] Have you included a brief and descriptive title?
  • [x] Have you included a clear description of the problem you are trying to solve?
  • [x] Have you included a minimal code snippet that reproduces the issue you are encountering?
  • [x] Have you checked our Contributing document?

rly avatar Jun 10 '20 03:06 rly