Skip to content

Cannot move containers or add/copy existing containers to another file #691

Description

@rly

Description

See NeurodataWithoutBorders/helpdesk#21

Users may want to reorganize their files to conform to best practices or other reasons. However, moving containers from one location to another does not work, regardless of whether the file has been written or the user is using the export function. This is because the parent of the container is set once and cannot be reset.

Similarly, although HDMF (HDF5IO) supports taking datasets read from one file and writing them to a new file as a link or copy, taking entire containers that are read from one file and adding/writing them to a new file is not currently supported. This is because the parent of the container is set once and cannot be reset. Copying entire containers without calling the constructor and copying each field one by one has not yet been implemented. See #331 and #108

One solution is to allow users to reset the parent of a container, at their own peril. Another is to resolve copying of containers but that has proven to be more difficult than expected.

Environment

Python Executable: Conda
Python Version: Python 3.9
Operating System: Windows
HDMF Version: dev

Checklist

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

Metadata

Metadata

Assignees

Labels

category: proposalproposed enhancements or new featurespriority: lowalternative solution already working and/or relevant to only specific user(s)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions