Skip to content

Conversation

lkeegan
Copy link
Member

@lkeegan lkeegan commented Nov 20, 2023

  • If the last piece condition is true then don't explicitly print this condition
  • This doesn't change symengine behaviour (other than sbml printing)
    • Both forms are equivalent for the symengine sbml parser
  • But it improves compatibility of the generated sbml string with the libSBML library
    • libSBML parser returns NaN if multiple explicit piece conditions evaluate to true

- If the last piece condition is `true` then don't explicitly print this condition
- This doesn't change symengine behaviour (other than sbml printing)
  - Both forms are equivalent for the symengine sbml parser
- But it improves compatibility of the generated sbml string with the libSBML library
  - libSBML parser returns `NaN` if multiple explicit piece conditions evaluate to `true`
@lkeegan
Copy link
Member Author

lkeegan commented Nov 21, 2023

@isuruf thanks for reviewing

@lkeegan lkeegan merged commit dbab755 into symengine:master Nov 21, 2023
@lkeegan lkeegan deleted the sbml_piecewise_printing branch November 21, 2023 09:24
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