I think there is a problem with event assignments to compartments (targeted by rate rules, others aren't supported yet), if
1) there are multiple event assignments for a single event, and
2a) the assignment to the compartment is not the last assignment, or
2b) there are assignments to multiple compartments
I think there is a problem with event assignments to compartments (targeted by rate rules, others aren't supported yet), if 1) there are multiple event assignments for a single event, and 2a) the assignment to the compartment is not the last assignment, or 2b) there are assignments to multiple compartments
In this case, here: https://github.com/AMICI-dev/AMICI/blob/da19a550688e8232b23ace6d06722c66deb2703f/python/sdist/amici/sbml_import.py#L1675-L1677
formula
has the value of the most recently processed event assignments, independent on whether that was the respective compartment change.Reproducer for case 2a: