Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Sep 19, 2023
1 parent 6366406 commit 42aa547
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions python/examples/example_steadystate/ExampleSteadystate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
"print(\n",
" \"Simulation was run using model default parameters as specified in the SBML model:\"\n",
")\n",
"print(model.getParameters())"
"print(dict(zip(model.getParameterIds(), model.getParameters())))"
]
},
{
Expand Down Expand Up @@ -863,18 +863,14 @@
},
{
"cell_type": "code",
"execution_count": 13,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(1.0, 0.5, 0.4, 2.0, 0.1, 2.0, 3.0, 0.2)\n"
]
}
],
"execution_count": null,
"outputs": [],
"source": [
"print(model.getParameters())"
"# In particular for interactive use, ReturnDataView.by_id() and amici.evaluate provides a more convenient way to access slices of the result:\n",
"# Time trajectory of observable observable_x1\n",
"print(f\"{rdata.by_id('observable_x1')=}\")\n",
"# Time trajectory of state variable x2\n",
"print(f\"{rdata.by_id('x2')=}\")"
],
"metadata": {
"collapsed": false,
Expand Down

0 comments on commit 42aa547

Please sign in to comment.