Skip to content
Snippets Groups Projects
Unverified Commit 2fb1696f authored by Juacrumar's avatar Juacrumar Committed by GitHub
Browse files

Update n3fit/src/n3fit/checks.py

parent ac1a9564
Branches
Tags
1 merge request!945Expose positivity threshold in the runcard
...@@ -127,7 +127,7 @@ def check_lagrange_multipliers(parameters, key): ...@@ -127,7 +127,7 @@ def check_lagrange_multipliers(parameters, key):
if lagrange_dict is None: if lagrange_dict is None:
return return
multiplier = lagrange_dict.get("multiplier") multiplier = lagrange_dict.get("multiplier")
if multiplier is not None and multiplier <= 0: if multiplier is not None and multiplier < 0:
log.warning("The %s multiplier is below 0, it will produce a negative loss", key) log.warning("The %s multiplier is below 0, it will produce a negative loss", key)
threshold = lagrange_dict.get("threshold") threshold = lagrange_dict.get("threshold")
if threshold is not None and not _is_floatable(threshold): if threshold is not None and not _is_floatable(threshold):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment