Skip to content

Commit

Permalink
fix parameter unscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Dec 6, 2024
1 parent 2be3ef6 commit 7b5383c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions python/sdist/amici/jax/petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,18 @@ def load_reinitialisation(
],
Number,
)
else p
else p[self.model.parameter_ids.index(xval)]
if xval in self.model.parameter_ids
else self.get_petab_parameter_by_id(xval)
else jax_unscale(
self.get_petab_parameter_by_id(xval),
self._petab_problem.parameter_df.loc[
xval, petab.PARAMETER_SCALE
],
)
if xval in self.parameter_ids
else self._petab_problem.parameter_df.loc[
xval, petab.NOMINAL_VALUE
]
for xname in self.model.state_ids
]
)
Expand Down

0 comments on commit 7b5383c

Please sign in to comment.