From 42e544f6f2c011a39581bd28459520a21625e083 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 17 Jan 2023 13:03:34 -0800 Subject: [PATCH] removed deprecated numpy dtype syntax --- csep/core/catalogs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/csep/core/catalogs.py b/csep/core/catalogs.py index 3b0fecfe..6d7bf20c 100644 --- a/csep/core/catalogs.py +++ b/csep/core/catalogs.py @@ -82,16 +82,16 @@ def __str__(self): s = f''' Name: {self.name} - + Start Date: {self.start_time} End Date: {self.end_time} - + Latitude: ({self.min_latitude}, {self.max_latitude}) Longitude: ({self.min_longitude}, {self.max_longitude}) - + Min Mw: {self.min_magnitude} Max Mw: {self.max_magnitude} - + Event Count: {self.event_count} ''' return s @@ -623,7 +623,7 @@ def compute_mct(t, m): return self # this is used to index the array, starting with accepting all events - filter = numpy.ones(self.event_count, dtype=numpy.bool) + filter = numpy.ones(self.event_count, dtype=bool) for i, (mw, time) in enumerate(zip(mws, times)): # we can break bc events are sorted in time if time > t_crit_epoch: