Skip to content

Commit 42e544f

Browse files
committed
removed deprecated numpy dtype syntax
1 parent f67bd97 commit 42e544f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

csep/core/catalogs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ def __str__(self):
8282

8383
s = f'''
8484
Name: {self.name}
85-
85+
8686
Start Date: {self.start_time}
8787
End Date: {self.end_time}
88-
88+
8989
Latitude: ({self.min_latitude}, {self.max_latitude})
9090
Longitude: ({self.min_longitude}, {self.max_longitude})
91-
91+
9292
Min Mw: {self.min_magnitude}
9393
Max Mw: {self.max_magnitude}
94-
94+
9595
Event Count: {self.event_count}
9696
'''
9797
return s
@@ -623,7 +623,7 @@ def compute_mct(t, m):
623623
return self
624624

625625
# this is used to index the array, starting with accepting all events
626-
filter = numpy.ones(self.event_count, dtype=numpy.bool)
626+
filter = numpy.ones(self.event_count, dtype=bool)
627627
for i, (mw, time) in enumerate(zip(mws, times)):
628628
# we can break bc events are sorted in time
629629
if time > t_crit_epoch:

0 commit comments

Comments
 (0)