Skip to content

Commit 2926214

Browse files
committed
..
1 parent 54624fe commit 2926214

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

petab/v1/problem.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,9 +1105,7 @@ def add_parameter(
11051105
PARAMETER_ID: [id_],
11061106
}
11071107
if estimate is not None:
1108-
record[ESTIMATE] = [
1109-
int(estimate) if isinstance(estimate, bool | int) else estimate
1110-
]
1108+
record[ESTIMATE] = [int(estimate)]
11111109
if nominal_value is not None:
11121110
record[NOMINAL_VALUE] = [nominal_value]
11131111
if scale is not None:

petab/v2/problem.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -860,9 +860,7 @@ def add_parameter(
860860
PARAMETER_ID: [id_],
861861
}
862862
if estimate is not None:
863-
record[ESTIMATE] = [
864-
int(estimate) if isinstance(estimate, bool | int) else estimate
865-
]
863+
record[ESTIMATE] = [int(estimate)]
866864
if nominal_value is not None:
867865
record[NOMINAL_VALUE] = [nominal_value]
868866
if scale is not None:

0 commit comments

Comments
 (0)