question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support pathlib Path input in dask_image.imread.imread()

See original GitHub issue

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 to dask-image.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
jakirkhamcommented, Jun 5, 2020

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.

1reaction
martindurantcommented, May 29, 2020

os.fspath is almost identical to isinstance(urlpath, Path); then again, pathlib only appeared in py34.

Does dask-image support remote reading at all?

Read more comments on GitHub >

github_iconTop Results From Across the Web

skimage.io.imread behaving differently when giving a string or ...
imread . I was trying to open a MultiPage TIFF (dimensions: 96x512x512) like this: import argparse from pathlib import ...
Read more >
dask-image Documentation
Provides support for loading image files. ... images = dask_image.imread.imread(filename_pattern) ... fname (str or pathlib.Path) – A glob ...
Read more >
imageio.v2.imread
The resource to load the image from, e.g. a filename, pathlib.Path, http address ... See help() to see what arguments are available for...
Read more >
Python Path – How to Use the Pathlib Module with Examples
PurePath() is the root node that provides handling operations to every path object in Pathlib. When you instantiate PurePath() , it creates two ......
Read more >
Python imread(): Different ways to load an image using the ...
In this tutorial, we will learn how to use imread() method of OpenCV-Python in detail and different ways to load an image using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found