-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMICI simulation fails when having initial states defined as NaN in the condition table #1396
Comments
Could you try the above PR with the following script (and the PEtab you supplied -- thanks for that)? import petab
from amici.petab_import import import_petab_problem
from amici.petab_objective import simulate_petab
petab_problem = petab.Problem.from_yaml("test/Pom1p_Problem.yml")
amici_model = import_petab_problem(petab_problem)
result = simulate_petab(petab_problem, amici_model)
for rdata in result['rdatas']:
print(rdata['y']) |
dweindl
added a commit
that referenced
this issue
Feb 18, 2021
…fixes (#1417) Adds possibility to provide state indices for selective reinitialization based on fixed parameters. The previous `ExpData::reinitializeFixedParameterInitialStates` is still there, but will be removed in an upcoming version. Addresses #1345, #1396, #1319 Supersedes #1344 Include new test cases from PEtab-dev/petab_test_suite#35
Should be fixed in 0.11.13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I provide here a minimal example of code with a PEtab model in which when I set both initial conditions to numerical values in the condition table, it simulates and returns the expected value (the initial condition of the input).
However, if I set one or both to NaN (or empty string) it fails instead of simulation without doing assignments.
The minimal example reproduces the error scenario. Executing
test.py
.test.zip
I have latest
develop
version.The text was updated successfully, but these errors were encountered: