From 4018eceec451799fc0002dd605230c8d0125f4cb Mon Sep 17 00:00:00 2001 From: Bruno Pagani Date: Wed, 28 Jul 2021 14:02:59 +0000 Subject: [PATCH] test: fix numpy warning with np.float >DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. --- test/test_cftime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_cftime.py b/test/test_cftime.py index 055ef948..063a141b 100644 --- a/test/test_cftime.py +++ b/test/test_cftime.py @@ -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]