Skip to content

Commit

Permalink
Update valgrind suppressions
Browse files Browse the repository at this point in the history
for Python 3.11
  • Loading branch information
dweindl committed May 8, 2024
1 parent 1b2d8de commit a0566b0
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@
"# Directory to which the generated model code is written\n",
"model_output_dir = model_name\n",
"\n",
"from pprint import pprint\n",
"\n",
"import libsbml\n",
"import amici\n",
"import amici.plotting\n",
"import os\n",
"import sys\n",
"import importlib\n",
"import numpy as np\n",
"\n",
"import amici.plotting"
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"from pprint import pprint"
]
},
{
Expand Down Expand Up @@ -139,7 +143,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"For this example we want to specify the initial drug and kinase concentrations as experimental conditions. Accordingly, we specify them as `fixedParameters`. The meaning of `fixedParameters` is defined in the [Glossary](https://amici.readthedocs.io/en/latest/glossary.html#term-fixed-parameters), which we display here for convenience."
"For this example we want specify the initial drug and kinase concentrations as experimental conditions. Accordingly we specify them as `fixedParameters`. The meaning of `fixedParameters` is defined in the [Glossary](https://amici.readthedocs.io/en/latest/glossary.html#term-fixed-parameters), which we display here for convenience."
]
},
{
Expand Down Expand Up @@ -365,7 +369,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The resulting trajectory is definitely not what one may expect. The problem is that the `DRUG_0` and `KIN_0` set initial conditions for species in the model. By default, these initial conditions are only applied at the very beginning of the simulation, i.e., before the preequilibration. Accordingly, the `fixedParameters` that we specified do not have any effect. To fix this, we need to set the `reinitializeFixedParameterInitialStates` attribute to `True`, to specify that AMICI reinitializes all states that have `fixedParameter`-dependent initial states."
"The resulting trajectory is definitely not what one may expect. The problem is that the `DRUG_0` and `KIN_0` set initial conditions for species in the model. By default these initial conditions are only applied at the very beginning of the simulation, i.e., before the preequilibration. Accordingly, the `fixedParameters` that we specified do not have any effect. To fix this, we need to set the `reinitializeFixedParameterInitialStates` attribue to `True`, to spefify that AMICI reinitializes all states that have `fixedParameter`-dependent initial states."
]
},
{
Expand Down
52 changes: 52 additions & 0 deletions python/tests/valgrind-python.supp
Original file line number Diff line number Diff line change
Expand Up @@ -878,3 +878,55 @@
fun:loadAntimonyString
...
}

{
Python
Memcheck:Cond
fun:maybe_small_long
...
}

{
Python
Memcheck:Value8
fun:medium_value
...
}

{
Python
Memcheck:Value8
fun:Py_INCREF
...
}
{
Python
Memcheck:Value8
fun:Py_DECREF
...
}
{
Python
Memcheck:Value8
fun:Py_SIZE
...
}
{
Python
Memcheck:Value8
fun:Py_TYPE
...
}
{
Python
Memcheck:Value8
fun:type_call
...
}

{
Python
Memcheck:Value8
fun:_PyEval_EvalFrameDefault
...
}

0 comments on commit a0566b0

Please sign in to comment.