Skip to content

Commit

Permalink
Merge pull request #250 from ArchangeGabriel/patch-1
Browse files Browse the repository at this point in the history
test: fix numpy warning with np.float
  • Loading branch information
jswhit authored Aug 3, 2021
2 parents 6e2d752 + 4018ece commit 081c19e
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 081c19e

Please sign in to comment.