-
Notifications
You must be signed in to change notification settings - Fork 84
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
[Bug]: Exception reading linked NWBFile with TimeSeriesReference
in NWBFile.trials
#1863
Comments
Could you help me understand this part of the example. It's unclear to me why
|
Whoops, that was a mistake. But even removing that line entirely, i.e. writing the copied And yes, your suggestion does maintain the (or at least an equivalent) timeseries link. |
I believe the main issue is the probably because of Here an updated version of your script that uses export instead. At least on my labtop this works:
|
Thank you for the suggestions. I'm glad to know there is a way to make this work. As for the bug issue, I am using |
@rly could you take a look. Is using |
@oruebel To make a shallow copy, then yes, one should use @miketrumpis Thanks for the thorough bug report! You are correct about the fix. I created a PR in #1865 with that fix. |
Thanks @rly for taking a look at this |
@miketrumpis could you please install the latest |
@rly excuse the delay, but yes it's all good here
idk if there is a good way like |
Great, thank you! |
What happened?
Dataset linking is breaking after adding a TimeSeriesReference to the NWB
trials
TimeIntervals
table.The result is a failure to read the NWBFile.
It seems that the constructor in
pynwb.io.epochs.TimeIntervalsMap
is getting aLinkBuilder
but isn't aware of how to handle it.Without knowing any details, it appears that
LinkBuilder.builder
is really what this constructor is looking for when a link is present:pynwb/src/pynwb/io/epoch.py
Lines 16 to 18 in 65b2a7d
Seems pretty similar to #1223 but I'm reporting a new bug since this involves
pynwb.io.epochs
rather thanpynwb.io.misc
.Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Conda
Python Version
3.9
Package Versions
pynwb 2.5.0 pyh267d04e_0 conda-forge
hdmf 3.10.0 pyh1ea47a8_0 conda-forge
Code of Conduct
The text was updated successfully, but these errors were encountered: