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

error with TwoPhotonSeries widget #145

Open
bendichter opened this issue Apr 3, 2024 · 3 comments
Open

error with TwoPhotonSeries widget #145

bendichter opened this issue Apr 3, 2024 · 3 comments

Comments

@bendichter
Copy link
Contributor

It looks like the TwoPhotonSeries visualization widget chokes when faced with volumetric data

examples:

https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/203ad33d-6aa9-42aa-8dfb-005e470cda0f/download/&dandisetId=000296&dandisetVersion=0.220805.1724&tab=neurodata-item:/acquisition/TwoPhotonSeries|TwoPhotonSeries

https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/d5d9e22a-8efd-499c-b231-6e5d0a91f6bd/download/&dandisetId=000951&dandisetVersion=draft&tab=neurodata-item:/acquisition/TwoPhotonSeries|TwoPhotonSeries

Interface gets stuck on load:

image

Javascript console:

Uncaught (in promise) Error: For now, you can't slice more than two dimensions at a time. You tried to slice 3 dimensions for /acquisition/TwoPhotonSeries/data.
    at fv.getDatasetData (index-d8517f37.js:199:66723)
    at index-d8517f37.js:227:146546
    at index-d8517f37.js:227:146718
    at uc (index-d8517f37.js:40:24296)
    at Js (index-d8517f37.js:40:42448)
    at index-d8517f37.js:40:40760
    at f (index-d8517f37.js:25:1544)
    at MessagePort.R (index-d8517f37.js:25:1906)
@magland
Copy link
Collaborator

magland commented Apr 3, 2024

Thanks for the report and for including the console message.

I implemented the 3d slicing capability, so it should be working now. However, it's going to be slow due to the nature of the chunking. I think this would be a good candidate for creating a supplementary .mp4 file using dendro. Do you think this would be of value?

It would be helpful if you could take a look at these examples and verify that the images look reasonable. It's easy to make a mistake with the indexing when doing complex slicing.

@bendichter
Copy link
Contributor Author

@h-mayorquin, since you worked with some of this data, could you help validate that these visualizations are working?

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

3 participants