Skip to content

Commit

Permalink
test: fix numpy warning with np.float
Browse files Browse the repository at this point in the history
>DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`.
  • Loading branch information
ArchangeGabriel authored Jul 28, 2021
1 parent 6e2d752 commit 4018ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_cftime.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def __init__(self, start, n, step, units, calendar='standard'):
self.calendar = calendar
t0 = date2num(start, units, calendar)
self._data = (t0 + np.arange(n) * step).astype('float')
self.dtype = np.float
self.dtype = float

def __getitem__(self, item):
return self._data[item]
Expand Down

0 comments on commit 4018ece

Please sign in to comment.