Skip to content

Commit

Permalink
Make simulate_petab return the generated/used ExpDatas (#1933)
Browse files Browse the repository at this point in the history
Quite helpful for debugging.
  • Loading branch information
dweindl authored Jan 16, 2023
1 parent 11a1f27 commit 7f1eee3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/sdist/amici/petab_objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
RES = 'res'
SRES = 'sres'
RDATAS = 'rdatas'
EDATAS = 'edatas'


@log_execution_time('Simulating PEtab model', logger)
Expand Down Expand Up @@ -92,6 +93,7 @@ def simulate_petab(
* cost function value (``LLH``),
* list of :class:`amici.amici.ReturnData` (``RDATAS``),
* list of :class:`amici.amici.ExpData` (``EDATAS``),
corresponding to the different simulation conditions.
For ordering of simulation conditions, see
Expand Down Expand Up @@ -163,7 +165,8 @@ def simulate_petab(

return {
LLH: llh,
RDATAS: rdatas
RDATAS: rdatas,
EDATAS: edatas,
}


Expand Down

0 comments on commit 7f1eee3

Please sign in to comment.