Skip to content

Commit

Permalink
Removed explicit requirement on Tifffile
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Nov 12, 2020
1 parent f8a19f8 commit 9c5dd19
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Release 2.0.6
* `scikit-ued` is being re-licensed from the MIT license to the GPLv3 license.
* The `fast` argument to `skued.align` and `skued.ialign` has been deprecated. Its value has no effect anymore.
* Official support for Python 3.9.
* Removed explicit requirement for the `tifffile` package.

Release 2.0.5
-------------
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ environment:
# to the matrix section.
TEST_CMD: "python -m unittest discover --verbose"
CONDA_CHANNELS: "default conda-forge"
CONDA_DEPENDENCIES: "numpy scipy cython scikit-image crystals tifffile pywavelets npstreams pyyaml"
CONDA_DEPENDENCIES: "numpy scipy cython scikit-image crystals pywavelets npstreams pyyaml"
PIP_DEPENDENCIES: ""

matrix:
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ numpy >= 1.15, < 2
pywavelets >= 1.0.0
scikit-image >= 0.17, <1
scipy >= 1.0.0
tifffile >= 0.13
pyyaml >= 3.1
matplotlib >= 3.0.0, <4
6 changes: 1 addition & 5 deletions skued/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from pathlib import Path

import tifffile

from .dm import dmread
from .merlin import mibread

Expand Down Expand Up @@ -40,9 +38,7 @@ def diffread(fname):
"""
fname = str(fname) # In case of pathlib.Path

if fname.endswith(("tiff", "tif")):
return tifffile.imread(fname)
elif fname.endswith(".mib"):
if fname.endswith(".mib"):
return mibread(fname)
elif fname.endswith((".dm3", ".dm4")):
return dmread(fname)
Expand Down

0 comments on commit 9c5dd19

Please sign in to comment.