[Bug]: Cannot write empty custom column of DynamicTable #1000
Labels
category: bug
errors in the code or code behavior
priority: low
alternative solution already working and/or relevant to only specific user(s)
What happened?
If a user adds a custom
indexedcolumn to a DynamicTable as part of their pipeline, but the column happens to be empty, HDMF cannot determine the dtype of the column when writing to HDF5 and errors out. A user should be able to specify the dtype of a column when creating the custom column to help the object mapper determine which dtype to use when creating the (empty) dataset for that column.Separately, it is also useful for the user to specify the dtype of a column on creation to aid in validation and so that the object mapper does not have to infer the dtype from the first element on write.
Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Conda
Python Version
3.11
Package Versions
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: