Skip to content

Sk/test rate rule converter rigorously#450

Merged
skeating merged 135 commits intodevelopmentfrom
sk/test-rate-rule-converter-rigorously
Oct 18, 2025
Merged

Sk/test rate rule converter rigorously#450
skeating merged 135 commits intodevelopmentfrom
sk/test-rate-rule-converter-rigorously

Conversation

@skeating
Copy link
Copy Markdown
Member

@skeating skeating commented Sep 27, 2025

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Change in documentation

Checklist:

  • I have updated all documentation necessary.
  • I have checked spelling in (new) comments.

Testing

  • Testing is done automatically and codecov shows test coverage
  • This cannot be tested automatically

skeating and others added 30 commits August 26, 2024 12:51
there are some untested things in here
…rously' into sk/test-rate-rule-converter-rigorously
 - only run build if repo is ours
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.
@skeating skeating requested a review from fbergmann September 27, 2025 14:07
Copy link
Copy Markdown
Member

@fbergmann fbergmann left a comment

Choose a reason for hiding this comment

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

@skeating i needed quite some more changes, but now everything passes and I will merge. Thank you so much!

@fbergmann
Copy link
Copy Markdown
Member

@skeating or at least i would have but it is failing to merge automatically

@skeating skeating merged commit 0c0ecfb into development Oct 18, 2025
35 checks passed
@skeating skeating deleted the sk/test-rate-rule-converter-rigorously branch November 18, 2025 10:22
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