-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat(app): Add Neurosift viewer for EDF and NWB files #3187
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3187 +/- ##
==========================================
+ Coverage 43.10% 44.44% +1.34%
==========================================
Files 547 592 +45
Lines 36178 37861 +1683
Branches 1128 1131 +3
==========================================
+ Hits 15595 16829 +1234
- Misses 20383 20832 +449
Partials 200 200 ☔ View full report in Codecov by Sentry. |
Thanks @nellh This won't work as is for NWB files. The URL for those looks a bit different: Notice the p=/nwb instead of p=/edf |
I wonder what's the best way to select the height. Is the plan to just fix it as something sensible? |
Thanks, fixed!
I set it to 50% viewport height as this is what our HTML iframe viewer was doing already and generally gives a good amount of space for the viewer without using a static height. |
This is great, thanks @nellh . When will this go live? |
It will be included in the next OpenNeuro release, aiming to release early next week. |
@nellh I think there's a problem here. It seems that when you visit the page of an EDF file, the entire file gets automatically downloaded to the browser before the iframe is rendered. This is probably because that's how other file types are handled. But in this case, we don't need the file to be downloaded - and that's the point of neurosift - that's it's lazy-loading. Sometimes the files can be quite large. |
Implementation of #3186 using the iframe approach.