-
Notifications
You must be signed in to change notification settings - Fork 46
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
More careful check for zarr store that supports abort controller #299
Comments
This change would have the additional added benefit of making our This way we just check for the object property |
I'm fine with this. Another option might be to somehow make the |
I think I follow, but I'm hesitant to expose anything generic/public unless there is a compelling use-case beyond ours. The
I don't think this makes sense for Zarr.js because end users don't manage indexing; this is handled internally and when you call read: If you are dealing with low level requests (calling the store manually), like we are in Viv, then you can rely on certain custom properties for a specific store, but Zarr.js won't rely on anything that's not a shared interface for all stores. |
This sounds good then, an extra property seems like it would work. |
In hms-dbmi/vizarr#43, we upgraded
viv
and it broke the imjoy support (in part), due to the addition of theAbortController
argument inloader.getTile
for zarr images.This is because we pass an extra argument to
store.getItem
than before (thesignal
), and the python store exposed viaimjoy-rpc
expects 1 argument, throwing and error whengetItem()
is called with two arguments. I think a fix on our end to isolate this behavior would be to add a hidden property to our customHTTPStore
(e.g.HTTPStore._viv
) that we can check for ingetTile
, but ideally functions exposed to JavaScript from python would "work" like JavaScript functions (where you can supply as many arguments as you want).maybe @oeway has some thoughts here.
The text was updated successfully, but these errors were encountered: