We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a60b2e commit 45adbbbCopy full SHA for 45adbbb
petab/v1/lint.py
@@ -675,7 +675,7 @@ def assert_parameter_estimate_is_boolean(parameter_df: pd.DataFrame) -> None:
675
AssertionError: in case of problems
676
"""
677
for estimate in parameter_df[ESTIMATE]:
678
- if int(estimate) not in [True, False]:
+ if str(estimate) not in ["0", "1"]:
679
raise AssertionError(
680
f"Expected 0 or 1 but got {estimate} in {ESTIMATE} column."
681
)
0 commit comments