Skip to content
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

Fix SBML import for events with trigger functions depending on parame… #2145

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jul 12, 2023

Fix SBML import for events with trigger functions depending on parameters that are initial assignment targets.

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.

Credits to @LeaSeep for triggering that issue.

@dweindl dweindl requested a review from a team as a code owner July 12, 2023 12:33
@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

Merging #2145 (c76b715) into develop (3d7bbc4) will decrease coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2145      +/-   ##
===========================================
- Coverage    76.61%   76.56%   -0.05%     
===========================================
  Files           81       82       +1     
  Lines        14926    14943      +17     
===========================================
+ Hits         11435    11441       +6     
- Misses        3491     3502      +11     
Flag Coverage Δ
cpp 73.55% <ø> (+0.06%) ⬆️
petab 54.26% <ø> (-0.17%) ⬇️
python 77.24% <ø> (ø)
sbmlsuite ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/sdist/amici/sbml_import.py 77.83% <ø> (ø)

... and 4 files with indirect coverage changes

Copy link
Member

@FFroehlich FFroehlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dweindl dweindl merged commit 36a880e into develop Jul 13, 2023
20 of 22 checks passed
@dweindl dweindl deleted the fix_events_ia branch July 13, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants