-
Notifications
You must be signed in to change notification settings - Fork 32
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
issue exporting NWB file after it has already been created #336
Comments
digging in a bit further into this. this doesn't seem to be an issue with the file created by the ophys tutorial. |
@cechava yes, this should be possible in general. The |
@bendichter indeed it appears |
@cechava got it. Could you change the title of this issue or create a new issue and put together a minimal snippet of code that completely reproduces the error? |
closing out and creating a new issue. |
there was an independent bug in my code that led me to believe the |
Interesting. I suggest paring down the code section by section to get a minimal snippet that reproduces the error. If you can post that and the full traceback I might be able to help you figure out what is going on. |
The following snippet of code replicates the error. The file path should be replaced to the local location of the file downloaded from here inputFilePath = '/Users/cesar/Documents/CatalystNeuro/matNWB/EXTRACT-interface/sub-F3_ses-20190414T210000_obj-7vehp4_behavior+ophys.nwb';
nwb = nwbRead(inputFilePath);
nwbExport(nwb, inputFilePath); The output error
Some further info:
|
Data from this DANDIset does have acquisition data and the file be read-in and re-exported. I think the issue is specific to the files from the Plitt/Giocomo DANDIset. |
You could try deleting components of the file with h5py.
del dataset
and
del group
Both work. You could use that approach to pare the file down
On Fri, Oct 29, 2021 at 6:46 PM cechava ***@***.***> wrote:
Data from this DANDIset <https://gui.dandiarchive.org/#/dandiset/000048>
does have acquisition data and the file be read-in and re-exported. I think
the issue is specific to the files from the Plitt/Giocomo DANDIset.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#336 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGOEETUBIU2BPYSVBBSQZLUJMP3XANCNFSM5G6IPVMQ>
.
--
Ben Dichter, PhD
Data Science Consultant
personal website <http://bendichter.com/>
|
Deleting the 'TwoPhotonSeries' acquisition group allows the file to be re-exported without issue. Do you know how this file was created? I'm wondering if there's something about how this file was created that is causing this issue. |
I would like to do the following:
However, it seems I am unable to do the simpler task of just reading in the file and exporting it again.
The following MATLAB code
produced this error:
I tried using the same file name for exporting, but that just throws a more ambiguous error
I found this thread for PyNWB and it seems the issue is resolved there with the addition of an .export method to NWBHDF5IO. Any thoughts on how to approach this in matnwb? Any tips appreciated
The text was updated successfully, but these errors were encountered: