Skip to content

Commit

Permalink
Fix SBML import for events with trigger functions depending on parame…
Browse files Browse the repository at this point in the history
…ters that are initial assignment targets (#2145)

I.e. given the current way of processing initial assignments, events have to be processed first. Otherwise model compilation fails with `use of undeclared identifier`, because the respective parameter was replaced by its initial assignment value.
  • Loading branch information
dweindl authored Jul 13, 2023
1 parent 7e0832a commit 36a880e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sdist/amici/sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ def _process_sbml(
self._process_species()
self._process_reactions()
self._process_rules()
self._process_events()
self._process_initial_assignments()
self._process_species_references()
self._process_events()

def check_support(self) -> None:
"""
Expand Down

0 comments on commit 36a880e

Please sign in to comment.