Skip to content

Commit

Permalink
refactor: swap order of filter and check
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidni authored and aronsho committed Jan 31, 2025
1 parent fbf00ff commit 2471908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion seismostats/analysis/avalue/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def calculate(self,
self.m_ref = m_ref
self.b_value = b_value

self._sanity_checks()
self._filtering()
self._sanity_checks()

self.__a_value = self._estimate(*args, **kwargs)
self.__a_value = self._reference_scaling(self.__a_value)
Expand Down
2 changes: 1 addition & 1 deletion seismostats/analysis/bvalue/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def calculate(self,
self.delta_m = delta_m
self.weights = None if weights is None else np.array(weights)

self._sanity_checks()
self._filtering()
self._sanity_checks()

self.__b_value = self._estimate(*args, **kwargs)
return self.__b_value
Expand Down

0 comments on commit 2471908

Please sign in to comment.