-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Bug]: Panel has strange I/O issues #264
Comments
s3 and fsspec use different protocols by default (s3 vs http). Maybe this is an issue with the http protocol for these files |
A possible solution might be to change fsspec to the s3 backend (which is slightly superior anyway) |
I can confirm after even more experimentation that this issue is nearly deterministic when using it to view local files instead of streaming from DANDI |
@CodyCBakerPhD what do you mean by this last message? Do you run into the same problems when you open files locally? |
I have not been able to reproduce this bug on my personal mac... |
Strangely, this works just fine on the hub: import fsspec
import h5py
from pynwb import NWBHDF5IO
from nwbwidgets.utils.dandi import get_file_url
http = get_file_url("000535", file_path="sub-460654/sub-460654_ses-20190611T181840_behavior+ophys.nwb")
fsys = fsspec.filesystem("http")
f = fsys.open(http, "rb")
file = h5py.File(f)
io = NWBHDF5IO(file=file, load_namespaces=True)
nwbfile = io.read()
nwbfile.processing["ophys"].data_interfaces["DfOverF"].roi_response_series['RoiResponseSeries'].data[:,0] |
And works just fine outside of Panel:
|
@pauladkisson and I found reproduced the same issue while looking at some files on the DANDI Hub, but the files were not being streamed, they were locally available
Even running the Panel in the same exact way on the same exact part of the same exact streamed asset? And same Widgets version? Would be interesting to know if this is a DANDI Hub specific issue... |
* fix bug * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * close previous io * changelog --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ben Dichter <ben.dichter@gmail.com>
What happened?
The new Panel feature has some strange behavior when run on certain DANDI files...
On most dandisets it seems to work just fine, such as
000409
(IBL) but others cause a certain failure that I usually indicates some kind of issue with file I/O usingfsspec
It's worth noting that I can't reproduce any of these issues by manually calling
nwb2widget
on the same S3 pathSteps to Reproduce
A reproducible example seems to at least include
000402
(MICrONS) - just pick a file and attempt to view some content in it get the traceback belowTraceback
Operating System
Linux
Python Version
3.10
Package Versions
nwbwidgets==0.10.1
Code of Conduct
The text was updated successfully, but these errors were encountered: