Skip to content

Commit 9047f2b

Browse files
author
Fabian Fröhlich
authored
allow zero bounds for log parameters (#83)
1 parent 0a2de3b commit 9047f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

petab/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def check_parameter_bounds(parameter_df: pd.DataFrame) -> None:
466466
raise AssertionError(
467467
f"{LOWER_BOUND} greater than {UPPER_BOUND} for "
468468
f"{PARAMETER_ID} {row.name}.")
469-
if (row[LOWER_BOUND] <= 0.0 or row[UPPER_BOUND] < 0.0) \
469+
if (row[LOWER_BOUND] < 0.0 or row[UPPER_BOUND] < 0.0) \
470470
and row[PARAMETER_SCALE] in [LOG, LOG10]:
471471
raise AssertionError(
472472
f"Bounds for {row[PARAMETER_SCALE]} scaled parameter "

0 commit comments

Comments
 (0)