Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 19, 2024
1 parent 54624fe commit 2926214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions petab/v1/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,7 @@ def add_parameter(
PARAMETER_ID: [id_],
}
if estimate is not None:
record[ESTIMATE] = [
int(estimate) if isinstance(estimate, bool | int) else estimate
]
record[ESTIMATE] = [int(estimate)]
if nominal_value is not None:
record[NOMINAL_VALUE] = [nominal_value]
if scale is not None:
Expand Down
4 changes: 1 addition & 3 deletions petab/v2/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,9 +860,7 @@ def add_parameter(
PARAMETER_ID: [id_],
}
if estimate is not None:
record[ESTIMATE] = [
int(estimate) if isinstance(estimate, bool | int) else estimate
]
record[ESTIMATE] = [int(estimate)]
if nominal_value is not None:
record[NOMINAL_VALUE] = [nominal_value]
if scale is not None:
Expand Down

0 comments on commit 2926214

Please sign in to comment.