Closed weiglszonja closed 1 week ago
@rly this error can be replicated in the example notebook as well, if you try to read the beadl_test.nwb
without importing from ndx-structured-behavior at the top, then you'll see the same error (even with load_namespaces=True
).
While importing ndx-structured-behavior before reading the same file works:
Hi @weiglszonja , I can reproduce the error and am looking into it. Thanks
Hi @weiglszonja , I found the bug and created a fix in HDMF. In the meantime, I think you should be able to do something like this to make the read work:
from pynwb import NWBHDF5IO
with NWBHDF5IO("src/pynwb/tests/beadl_light_chasing_task.nwb", "r") as io:
TaskSchema = io.manager.type_map.get_dt_container_cls('TaskSchema', 'ndx-structured-behavior')
BEADLTaskSchema = io.manager.type_map.get_dt_container_cls('BEADLTaskSchema', 'ndx-structured-behavior')
nwbfile = io.read()
print(nwbfile.lab_meta_data["task"].task_program.schema)
Thanks for fixing this, closing this issue as this was fixed in https://github.com/hdmf-dev/hdmf/pull/1183
I'm trying to use
ndx-structured-behavior
to convert Bpod data from the Constantinople lab to NWB, but I'm having strange issues when trying to read the files using Jupyter Notebook. I get a "Namespace could not be resolved"ValueError
, traceback:I can read the file in Python, so I'm really not sure why this is not working in Jupyter notebook. @rly I'm happy to share this file with you privately, and would really appreciate the help with this.
I'm also seeing these UserWarnings
The linked table for DynamicTableRegion 'event_type' does not share an ancestor with the DynamicTableRegion
, though I'm not sure they are related to the problem above: