diff --git a/setup.py b/setup.py index eae610b4..1b8cf830 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ def run_tests(self): "dask[array] >=2023.2.0", "dask[dataframe] >=2023.2.0", "numpy >=1.18", - "scipy >=0.19.1", + "scipy >=1.7.0", "pims >=0.4.1", "tifffile >=2018.10.18", "pandas >=2.0.0", diff --git a/tests/test_dask_image/test_ndfourier/test_core.py b/tests/test_dask_image/test_ndfourier/test_core.py index 6d743570..f457533b 100644 --- a/tests/test_dask_image/test_ndfourier/test_core.py +++ b/tests/test_dask_image/test_ndfourier/test_core.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- import numbers -from distutils.version import LooseVersion import pytest import numpy as np @@ -92,7 +91,6 @@ def test_fourier_filter_identity(funcname, s): ) def test_fourier_filter_type(funcname, upcast_type, dtype): if ( - LooseVersion(sp.__version__) >= "1.0.0" and dtype in [np.int64, np.float64] and funcname in ["fourier_gaussian", "fourier_uniform"] ): diff --git a/tests/test_dask_image/test_ndmeasure/test_core.py b/tests/test_dask_image/test_ndmeasure/test_core.py index 57add8cf..f7b8b299 100644 --- a/tests/test_dask_image/test_ndmeasure/test_core.py +++ b/tests/test_dask_image/test_ndmeasure/test_core.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from distutils.version import LooseVersion import itertools as it import warnings as wrn @@ -107,13 +106,7 @@ def test_center_of_mass(datatype): ] ) def test_measure_props(funcname, shape, chunks, has_lbls, ind): - # early scipy version uses a different name sum insted of sum_labels. - if funcname == 'sum_labels' and scipy.__version__ < LooseVersion('1.6.0'): - scipy_funcname = 'sum' - else: - scipy_funcname = funcname - - sp_func = getattr(scipy.ndimage, scipy_funcname) + sp_func = getattr(scipy.ndimage, funcname) da_func = getattr(dask_image.ndmeasure, funcname) a = np.random.random(shape)