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
[NixIO] Support "empty" annotations #500
Comments
For there is a quick fix for this (#476) but I think we should keep this open to find a more general solution. |
Hi @achilleas-k |
Took me a while to remember what the situation was here. As a reminder for myself and anyone else that might need this: Currently the Neo NIXIO writes empty annotations with a string dtype because properties must always have a dtype: Lines 1326 to 1331 in 4e90312
It uses the Lines 1381 to 1383 in 4e90312
Since (I think) v1.5.0b3, property values are always tuples, even when a single value is stored. It still requires the dtype to be specified, but when storing an empty value, the on disk representation is essentially an empty array. On read, this returns as an empty tuple. So now we can indeed get rid of the workaround with the |
Since there is a quick fix for this already existing, I am postponing the clean solution to the next release |
Support empty lists in annotations (for NixIO).
See #476
The text was updated successfully, but these errors were encountered: