Skip to content

Commit

Permalink
Merge pull request #529 from aleju/fix_fromfunction_deprecated
Browse files Browse the repository at this point in the history
Fix deprecated call of scipy.fromfunction()
  • Loading branch information
aleju committed Dec 18, 2019
2 parents 86c895a + 8902fc7 commit 0751e1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Fixed `scipy.fromfunction` Deprecated #529

* Fixed deprecated `scipy.fromfunction()` being called.
2 changes: 1 addition & 1 deletion imgaug/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3146,7 +3146,7 @@ def _freq(yy, xx):
wdist = np.minimum(xx, w-xx)
return np.sqrt(hdist**2 + wdist**2)

return scipy.fromfunction(_freq, (h, w))
return np.fromfunction(_freq, (h, w))

def __repr__(self):
return self.__str__()
Expand Down

0 comments on commit 0751e1c

Please sign in to comment.