Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pygmm/chiou_youngs_2014.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, scenario: model.Scenario):
super().__init__(scenario)
ln_resp_ref = self._calc_ln_resp_ref()
self._ln_resp = self._calc_ln_resp_site(ln_resp_ref)
self._ln_std = self._calc_ln_std(np.exp(ln_resp_ref))
self._ln_std, self._tau, self._phi = self._calc_ln_std(np.exp(ln_resp_ref))

def _calc_ln_resp_ref(self) -> np.ndarray:
"""Calculate the natural logarithm of the reference response.
Expand Down Expand Up @@ -217,7 +217,7 @@ def calc_site_term(

return site_term

def _calc_ln_std(self, resp_ref: np.ndarray) -> np.ndarray:
def _calc_ln_std(self, resp_ref: np.ndarray) -> (np.ndarray, np.ndarray, np.ndarray):
"""Calculate the logarithmic standard deviation.

Parameters
Expand Down Expand Up @@ -258,7 +258,7 @@ def _calc_ln_std(self, resp_ref: np.ndarray) -> np.ndarray:
)

ln_std = np.sqrt((1 + nl_0) ** 2 * tau**2 + phi_nl**2)
return ln_std
return ln_std, np.sqrt((1 + nl_0) ** 2 * tau**2), phi_nl

def _check_inputs(self) -> None:
"""Check the inputs."""
Expand Down
Loading