Skip to content

Commit

Permalink
safe interpolate beta
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc committed Aug 26, 2024
1 parent a5827b4 commit b976ff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions warmth/forward_modelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,10 +1505,10 @@ def _get_new_beta(self, beta_list: np.ndarray[np.float64], wd_diff_list: np.ndar
else:
beta = old_beta*1.2

multiplier = self._get_beta_multiplier(wd_diff_list[-1])
# multiplier = self._get_beta_multiplier(wd_diff_list[-1])

if beta*multiplier < self._parameters.max_beta:
beta = beta * multiplier
# if beta*multiplier < self._parameters.max_beta:
# beta = beta * multiplier
else:
beta = old_beta+0.2
return beta
Expand Down

0 comments on commit b976ff0

Please sign in to comment.