Skip to content

Conversation

@sebapersson
Copy link
Contributor

Adding two test cases where mathematical expressions are used in the condition table for conditions that set model initial values. The generated test values match those computed by PEtab.jl.

  • Test case 0026 is a modified version of 0020, where the initial assignments of species A and B are now given by mathematical expressions that combine both parameters to be estimated and parameters that are not estimated.
  • Test case 0027 is a modified version of 0005, where the assignment to the parameter offset_A is given by a mathematical expression combining parameters to be estimated, parameters not to be estimated, and numerical values.

Why these are relevant

In PEtab v1, the condition table did not allow mapping mathematical expressions, only constant numerical values or parameters. Allowing mathematical expressions to be mapped is a noticeably harder problem to deal with for an importer, especially for computing gradients.

Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@dweindl dweindl merged commit d686cf2 into PEtab-dev:main Dec 15, 2025
2 checks passed
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