Sk/test rate rule converter rigorously#450
Merged
skeating merged 135 commits intodevelopmentfrom Oct 18, 2025
Merged
Conversation
there are some untested things in here
…rously' into sk/test-rate-rule-converter-rigorously
- only run build if repo is ours
…ter it is impossible to roundtrip
The ODEs were being copied by reference, leading to issues where modifications to the ODEs in the ExpressionAnalyser were affecting the original ODEs. To resolve this, a deep copy of the ODEs is now created when the ExpressionAnalyser is initialized. In addition, the ASTNodes returned by getODEFor() are now deep copied. This ensures that the ExpressionAnalyser operates on its own independent copy of the ODEs and ASTNodes, preventing unintended side effects.
Addresses an issue where assignment rules were not properly integrated into rate rule conversion. This change introduces a new method to replace assigned variables with their corresponding math expressions within rate rules. This ensures that the conversion process accurately reflects the underlying model dynamics. Also, adds an option to use stoichiometry from math in rate rule conversion.
Addresses issues in SBML rate rule conversion by refining stoichiometry handling and variable replacement. The changes ensure correct reaction stoichiometry by considering the `useStoichiometryFromMath` option. It also prevents replacement of CSymbolFunction to avoid unexpected behavior.
Makes replaceMathWithAssignedVariables, getListAssignmentRuleVariables, and replaceAssignedVariablesWithMath virtual methods in SBMLConverter to allow for overriding in derived classes.
Member
|
@skeating or at least i would have but it is failing to merge automatically |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Motivation and Context
Types of changes
Checklist:
Testing