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
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 #108One 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
Checklist