Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not write empty groups #234

Open
bendichter opened this issue Aug 6, 2020 · 0 comments
Open

do not write empty groups #234

bendichter opened this issue Aug 6, 2020 · 0 comments
Assignees
Labels
category: enhancement improvements of code or code behavior status: todo something needs to be done topic: nwb-file relates to how an exported nwb file is structured

Comments

@bendichter
Copy link
Contributor

When you write an NWB file, it automatically writes all of the modality-specific groups in /general: extracellular_ephys, intracellular_ephys, optogenetics, and optophysiology. Currently, all of these groups are written, even though they are empty and the schema defines them as optional. This is not ideal, because it creates clutter in the file with HDF5 groups that are empty and irrelevant to the given data. This is also a difference between PyNWB and MatNWB that might confuse users. Would it be possible to only write groups if they are not empty?

cc @chrapkiewicz

@bendichter bendichter added the category: enhancement improvements of code or code behavior label Aug 6, 2020
@lawrence-mbf lawrence-mbf self-assigned this Nov 17, 2021
@ehennestad ehennestad added status: todo something needs to be done topic: nwb-file relates to how an exported nwb file is structured labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: enhancement improvements of code or code behavior status: todo something needs to be done topic: nwb-file relates to how an exported nwb file is structured
Projects
None yet
Development

No branches or pull requests

3 participants