Skip to content

Commit

Permalink
Fix future warning (#301)
Browse files Browse the repository at this point in the history
* fixed future warning

* Specify minimum version for scikit-image 

Co-authored-by: Daniele Nerini <daniele.nerini@gmail.com>
  • Loading branch information
feldmann-m and dnerini committed Sep 25, 2022
1 parent cf142c1 commit 3905274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/user_guide/install_pysteps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Other optional dependencies include:
* `pywavelets <https://pywavelets.readthedocs.io/en/latest/>`_
(for intensity-scale verification)
* `pandas <https://pandas.pydata.org/>`_ and
`scikit-image <https://scikit-image.org/>`_ (for advanced feature detection methods)
`scikit-image >=0.19 <https://scikit-image.org/>`_ (for advanced feature detection methods)
* `rasterio <https://rasterio.readthedocs.io/en/latest/>`_ (for the reprojection module)


Expand Down
2 changes: 1 addition & 1 deletion pysteps/feature/tstorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def detection(
if np.nanmax(filt_image.flatten()) < minref:
maxima = np.zeros(filt_image.shape)
else:
maxima = skim.h_maxima(filt_image, h=mindiff, selem=struct)
maxima = skim.h_maxima(filt_image, h=mindiff, footprint=struct)
loc_max = np.where(maxima > 0)

loc_max = longdistance(loc_max, mindis)
Expand Down

0 comments on commit 3905274

Please sign in to comment.