Skip to content

Commit a5eb69a

Browse files
Revert skips on now-compulsory module SciPy
1 parent 5feee6c commit a5eb69a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

cf/test/test_Data.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import dask.array as da
1717
import numpy as np
18+
from scipy.ndimage import convolve1d
1819

1920
faulthandler.enable() # to debug seg faults and timeouts
2021

@@ -619,12 +620,8 @@ def test_Data_apply_masking(self):
619620
self.assertTrue((b == e.array).all())
620621
self.assertTrue((b.mask == e.mask.array).all())
621622

622-
@unittest.skipUnless(
623-
find_spec("scipy"), "scipy required but not installed")
624623
def test_Data_convolution_filter(self):
625624
"""Test the `convolution_filter` Data method."""
626-
from scipy.ndimage import convolve1d
627-
628625
# raise unittest.SkipTest("GSASL has no PLAIN support")
629626
d = cf.Data(self.ma, units="m", chunks=(2, 4, 5, 3))
630627

cf/test/test_Field.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import numpy
1212
import numpy as np
13+
from scipy.ndimage import convolve1d
1314

1415
faulthandler.enable() # to debug seg faults and timeouts
1516

@@ -1963,10 +1964,7 @@ def test_Field_autocyclic(self):
19631964
def test_Field_construct_key(self):
19641965
self.f.construct_key("grid_longitude")
19651966

1966-
@unittest.skipUnless(
1967-
find_spec("scipy"), "scipy required but not installed")
19681967
def test_Field_convolution_filter(self):
1969-
from scipy.ndimage import convolve1d
19701968
f = cf.read(self.filename1)[0]
19711969

19721970
window = [0.1, 0.15, 0.5, 0.15, 0.1]

0 commit comments

Comments
 (0)