You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
it seems there are some issues with the amici prefixes on parameters. Example attached.
I am trying to import a petab problem, but the importer fails with a KeyError. amici_k.zip
/home/mkoenig/.virtualenvs/petabunit/lib/python3.12/site-packages/pypesto/petab/importer.py:487: RuntimeWarning: The following problem parameters were not used: {'k'}
amici.petab.conditions.fill_in_parameters(
Traceback (most recent call last):
File "/home/mkoenig/git/petabunit/examples/simple_pk/simple_pk_optimization.py", line 13, in<module>
problem = importer.create_problem(verbose=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mkoenig/.virtualenvs/petabunit/lib/python3.12/site-packages/pypesto/petab/importer.py", line 735, in create_problem
objective = self.create_objective(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mkoenig/.virtualenvs/petabunit/lib/python3.12/site-packages/pypesto/petab/importer.py", line 487, in create_objective
amici.petab.conditions.fill_in_parameters(
File "/home/mkoenig/.virtualenvs/petabunit/lib/python3.12/site-packages/amici/petab/conditions.py", line 76, in fill_in_parameters
fill_in_parameters_for_condition(
File "/home/mkoenig/.virtualenvs/petabunit/lib/python3.12/site-packages/amici/petab/conditions.py", line 175, in fill_in_parameters_for_condition
map_sim_var[par_id] forpar_idinamici_model.getParameterIds()
~~~~~~~~~~~^^^^^^^^
KeyError: 'amici_k'
The text was updated successfully, but these errors were encountered:
Sounds plausible. It's related to reserved names in amici (mostly some one-letter-IDs). It think this is not handled at all in pypesto. For a quick work-around, you can rename k to kk, k_, ...
Hi all,
it seems there are some issues with the amici prefixes on parameters. Example attached.
I am trying to import a petab problem, but the importer fails with a KeyError.
amici_k.zip
The text was updated successfully, but these errors were encountered: