-
Notifications
You must be signed in to change notification settings - Fork 26
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
Getting TypeError: incorrect type for 'bool' attribute in extension #200
Comments
Hi @luiztauffer . Please try out the latest 1.4.0 version of HDMF and let me know if that does or does not fix the error. |
When using
I tested it now with the most current github version |
Awesome. We haven't released a new version of pynwb which would use the latest hdmf yet (we will soon), so yes, you'll have to use the dev version in the meantime. |
I’m having a problem creating an extension, more specifically, to create an attribute of type
bool
.On the list of valid primary dtypes, I get:
{'isodatetime', 'datetime64', 'region', 'int8', 'int16', 'bool', 'int', 'ascii', 'int32', 'text', 'bytes', 'int64', 'utf-8', 'double', 'utf', 'datetime', 'uint32', 'uint', 'uint64', 'uint16', 'object', 'numeric', 'float32', 'float', 'short', 'float64', 'long', 'uint8', 'utf8'}
Then I try to add an attribute of type
bool
:Here’s the full code.
When I run this test, it apparently works well in saving the nwb file with the new extension, I can even open the file with HDFView, but fails opening the new file with NWBHDF5IO. The error:
I’m guessing the source is here?
Does anyone have a hint how to solve it?
Checklist
The text was updated successfully, but these errors were encountered: