Skip to content

Commit

Permalink
adjusted weighs filtering further\
Browse files Browse the repository at this point in the history
  • Loading branch information
aronsho committed Dec 13, 2024
1 parent 1d2a777 commit 68cc2e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions seismostats/analysis/bvalue/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ def _filtering(self):
'''
Filter out magnitudes below the completeness magnitude.
'''
self.magnitudes = self.magnitudes[self.magnitudes
>= self.mc - self.delta_m / 2]
self.weights = self.weights[self.magnitudes
>= self.mc - self.delta_m / 2]
idx = self.magnitudes >= self.mc - self.delta_m / 2
self.magnitudes = self.magnitudes[idx]

if self.weights is not None:
self.weights = self.weights[idx]

def _sanity_checks(self):
'''
Expand Down

0 comments on commit 68cc2e6

Please sign in to comment.