-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Support pathlib Path input in dask_image.imread.imread() #139
Comments
If dask-image uses |
(feel free to use |
there's also |
Does dask-image support remote reading at all? |
Hi @martindurant, dask-image does not use Currently there isn't support for remote reading of files in dask-image. Pims does have support for remotely reading data via |
cc @danielballan , who worked on PIMS and we talked about this a little. |
Supporting pathlib seems sensible. FWIW Dan started working on a prototype for PIMS 2. Maybe these would be good suggestions for that prototype? Dask-image really relies on other libraries to do the heavy lifting (and doesn't try to get too involved itself). |
Ok, done
When I say "support" from dask-image, I think that should just mean try coercing any Paths to strings for convenience, at least as long as we're calling out to a library that only accepts strings. |
Yeah that’s what I figured you meant by support as well. That’s what I was trying to respond to in the first line. So yeah let’s support pathlib. Was trying to say more involved solutions are probably something we want to handle in a proper image reading library. |
One thing to double check when working on this is whether we currently support passing lists of filenames, as well as just a single string. (I can't remember if this is true or not). If it is true, the solution to this issue will also need to work in that situation as well. |
Closed via #174 |
It would be good if we supported pathlib Path inputs into the dask-image
imread()
function. I don't think it should be too complicated to add, so this could be a good first issue for contributors todask-image
.The text was updated successfully, but these errors were encountered: