Skip to content

Commit

Permalink
removed deprecated numpy dtype syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
wsavran committed Jan 17, 2023
1 parent f67bd97 commit 42e544f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions csep/core/catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 42e544f

Please sign in to comment.