Skip to content

Commit

Permalink
FIX: Add F_PRECISION to serr parameters
Browse files Browse the repository at this point in the history
Missing F_PRECISION for structural error parameters
  • Loading branch information
inoelloc committed Jul 29, 2024
1 parent 1d8f459 commit 7cdf639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smash/core/model/_standardize.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def _standardize_serr_mu_parameters_value(
low_arr = np.min(arr)
upp_arr = np.max(arr)

if low_arr <= low or upp_arr >= upp:
if (low_arr + F_PRECISION) <= low or (upp_arr - F_PRECISION) >= upp:
raise ValueError(
f"Invalid value for model serr_mu_parameter '{key}'. serr_mu_parameter domain "
f"[{low_arr}, {upp_arr}] is not included in the feasible domain ]{low}, {upp}["
Expand All @@ -641,7 +641,7 @@ def _standardize_serr_sigma_parameters_value(
low_arr = np.min(arr)
upp_arr = np.max(arr)

if low_arr <= low or upp_arr >= upp:
if (low_arr + F_PRECISION) <= low or (upp_arr - F_PRECISION) >= upp:
raise ValueError(
f"Invalid value for model serr_sigma_parameter '{key}'. serr_sigma_parameter domain "
f"[{low_arr}, {upp_arr}] is not included in the feasible domain ]{low}, {upp}["
Expand Down

0 comments on commit 7cdf639

Please sign in to comment.