Skip to content

Commit 3905274

Browse files
feldmann-mdnerini
andauthored
Fix future warning (#301)
* fixed future warning * Specify minimum version for scikit-image Co-authored-by: Daniele Nerini <[email protected]>
1 parent cf142c1 commit 3905274

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/user_guide/install_pysteps.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Other optional dependencies include:
3737
* `pywavelets <https://pywavelets.readthedocs.io/en/latest/>`_
3838
(for intensity-scale verification)
3939
* `pandas <https://pandas.pydata.org/>`_ and
40-
`scikit-image <https://scikit-image.org/>`_ (for advanced feature detection methods)
40+
`scikit-image >=0.19 <https://scikit-image.org/>`_ (for advanced feature detection methods)
4141
* `rasterio <https://rasterio.readthedocs.io/en/latest/>`_ (for the reprojection module)
4242

4343

pysteps/feature/tstorm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def detection(
150150
if np.nanmax(filt_image.flatten()) < minref:
151151
maxima = np.zeros(filt_image.shape)
152152
else:
153-
maxima = skim.h_maxima(filt_image, h=mindiff, selem=struct)
153+
maxima = skim.h_maxima(filt_image, h=mindiff, footprint=struct)
154154
loc_max = np.where(maxima > 0)
155155

156156
loc_max = longdistance(loc_max, mindis)

0 commit comments

Comments
 (0)