-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create a Silver Lab specific Matlab API for NWB2 #1
Comments
As of now, we have managed to write an NWB file (schema version 2.1.0) using the python API (pynwb-1.1.2) and then read that file using MatLab (cloned from NeurodataWithoutBorders/matnwb@3353784) but for this to work we had to (hackily) change the namespace |
Just a bit more information. We did also try commit NeurodataWithoutBorders/matnwb@2c0a852 as suggested by NeurodataWithoutBorders/matnwb#170, which should help. |
Thanks for cross-linking the issue. We just pushed some changes to matnwb for reading nwb-schema 1.2.0 files, which should work for current files created by pynwb. Could you test read/write now? Also, the link to the background in the first post of this thread is dead. |
The test data I used was written using pynwb 1.1.2, h5py 2.9.0 and python 3.6.9 Reading from MatLab works for me, only using the 'ignorecache' option of nwbRead, but without hacky modification from commit NeurodataWithoutBorders/matnwb@2c0a852 until NeurodataWithoutBorders/matnwb@ea9c25a (including both these commits) but fails for later commits with 'Property Without the ignorecache option, nwbRead works the first time I run it on my test data, but fails the second time with 'Property After
where not all dashes in occurrences of 'hdmf-common' are corrected to 'hdmf_common'... Currently trying to make sense of this, so any pointers welcome :) |
@alessandrofelder thanks for this report. I'll let the matnwb team know. If you could provide the files that produce this error or the scripts to produce them, that would be helpful. |
It looks like you are writing in pynwb and reading in matnwb. Is that right? |
@alessandrofelder When you nwbRead, are there still NwbFile objects present? You may need to clear those objects before reading again. |
@bendichter and @ln-vidrio - thanks a lot for your help! Yes, that is right - I am writing from pynwb and reading in matnwb. For your and future reference, I was using this python class to write a test NWB file. Again, many many thanks for fixing this so quickly! |
See https://github.com/SilverLabUCL/AnalysisPipeline/issues/12 for background
The text was updated successfully, but these errors were encountered: