Skip to content

Commit

Permalink
Merge pull request perrygeo#167 from whistler/patch-1
Browse files Browse the repository at this point in the history
Remove use of deprecated functionality
  • Loading branch information
perrygeo authored Apr 11, 2018
2 parents 58692a0 + 23b0022 commit 9eb57b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rasterstats/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def gen_zonal_stats(

# add nan mask (if necessary)
has_nan = (
np.issubdtype(fsrc.array.dtype, float)
np.issubdtype(fsrc.array.dtype, np.floating)
and np.isnan(fsrc.array.min()))
if has_nan:
isnodata = (isnodata | np.isnan(fsrc.array))
Expand Down

0 comments on commit 9eb57b7

Please sign in to comment.