From f8264a698737c7e49a5db67028a3605a5fbb0aa9 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Thu, 16 Dec 2021 14:53:21 -0500 Subject: [PATCH] remove use of deprecated np.bool --- Ska/engarchive/derived/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ska/engarchive/derived/base.py b/Ska/engarchive/derived/base.py index c523d0de..70a5cd6e 100644 --- a/Ska/engarchive/derived/base.py +++ b/Ska/engarchive/derived/base.py @@ -48,7 +48,7 @@ def fetch(self, start, stop): data.vals = np.where(data.vals == 'OFF', np.int8(0), np.int8(1)) times, indexes = times_indexes(start, stop, self.time_step) - bads = np.zeros(len(times), dtype=np.bool) # All data OK (false) + bads = np.zeros(len(times), dtype=np.bool_) # All data OK (false) for msidname, data in dataset.items(): # If no data are found in specified interval then stub two fake @@ -56,7 +56,7 @@ def fetch(self, start, stop): # be bad. if len(data) < 2: data.vals = np.zeros(2, dtype=data.vals.dtype) # two null points - data.bads = np.ones(2, dtype=np.bool) # all points bad + data.bads = np.ones(2, dtype=np.bool_) # all points bad data.times = np.array([times[0], times[-1]]) print('No data in {} between {} and {} (setting all bad)' .format(msidname, DateTime(start).date, DateTime(stop).date))