spacetx / slicedimage

MIT License
7 stars 3 forks source link

Add support for pathlib objects in skimage read/write methods #100

Closed ttung closed 5 years ago

ttung commented 5 years ago

Currently, skimage methods only support file-like objects or a string path. Since pathlib is so very convenient and easy to deal with, this adds support to pathlib objects to the reader and writers.

Test plan: used in https://github.com/spacetx/starfish/pull/1421

codecov-io commented 5 years ago

Codecov Report

Merging #100 into master will decrease coverage by 0.11%. The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
- Coverage   75.86%   75.75%   -0.12%     
==========================================
  Files          20       20              
  Lines         692      697       +5     
==========================================
+ Hits          525      528       +3     
- Misses        167      169       +2
Impacted Files Coverage Δ
slicedimage/_formats.py 87.5% <85.71%> (-3.93%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d8db571...6ba128a. Read the comment docs.