PEtab icon indicating copy to clipboard operation
PEtab copied to clipboard

Allow formulas in condition table

Open matthiaskoenig opened this issue 1 year ago • 1 comments

Conditions should be calculable based on the model variables and parameters. E.g. I want to change S1 to 2*S1 in a condition. I.e. formulas should be allowed in the condition table.

This would require additional information which values should be used similar to EventAssignments.

The time at which the expression in math is evaluated is determined by the attribute useValuesFromTriggerTime on Event. If the attribute value is “true”, the expression must be evaluated when the event is triggered ; more precisely, the values of identifiers occurring in MathML ci elements in the EventAssignment’s math expression are the values they have at the point when the event triggered. If, instead, useValuesFromTriggerTime’s value is “false”, it means the values at execution time should be used; that is, the values of identifiers occurring in MathML ci attributes in the EventAssignment’s math expression are the values they have at the point when the event executed.

matthiaskoenig avatar May 16 '24 06:05 matthiaskoenig

This is part of https://github.com/PEtab-dev/PEtab/pull/581

dweindl avatar May 23 '24 09:05 dweindl