do not write empty groups #234
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
When you write an NWB file, it automatically writes all of the modality-specific groups in
/general
:extracellular_ephys
,intracellular_ephys
,optogenetics
, andoptophysiology
. 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
The text was updated successfully, but these errors were encountered: