Skip to content
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

TwoPhotonSeries data not loading for recent dataset #203

Open
bendichter opened this issue Sep 16, 2024 · 3 comments
Open

TwoPhotonSeries data not loading for recent dataset #203

bendichter opened this issue Sep 16, 2024 · 3 comments

Comments

@magland
Copy link
Collaborator

magland commented Sep 16, 2024

It seems that the data has shape (0,0,0). Any idea why?

import remfile
import h5py
url = 'https://api.dandiarchive.org/api/assets/879c8d7e-3735-467b-8c77-3464532fafbc/download/'

# Load the remote file
remf = remfile.File(url)
f = h5py.File(remfile.File(url), 'r')

# load the neurodata object
X = f['/acquisition/TwoPhotonSeries']

print(X['data'].shape)

# output: (0, 0, 0)

@magland
Copy link
Collaborator

magland commented Sep 16, 2024

I think it's because the format is "external" => shape of data = (0, 0, 0)

@bendichter
Copy link
Contributor Author

ah, ok. This is something we enabled early in NWB, where data contributors could store 2p data in external TIFF files, but this isn't something that's fully supported by DANDI. DANDI prefers data to be stored in the NWB files so it can benefit from lossless compression and chunking. I think we should add a best practice to prevent this type of data from being contributed in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants