-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature check sbml success #118
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #118 +/- ##
===========================================
+ Coverage 77.85% 87.15% +9.30%
===========================================
Files 5 6 +1
Lines 429 475 +46
===========================================
+ Hits 334 414 +80
+ Misses 95 61 -34
Continue to review full report at Codecov.
|
yaml2sbml/yaml2sbml.py
Outdated
f'{species_id}, libsbml can not parse the right ' | ||
f'hand side, given by {formula}).') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f'{species_id}, libsbml can not parse the right ' | |
f'hand side, given by {formula}).') | |
f'{species_id}, libsbml can not parse the right-' | |
f'hand side, given by {formula}).') |
raise RuntimeError(f'Unable to generate assignment for formula ' | ||
f'{formula}, libsbml can not parse the given ' | ||
f'expression.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise RuntimeError(f'Unable to generate assignment for formula ' | |
f'{formula}, libsbml can not parse the given ' | |
f'expression.') | |
raise RuntimeError('Unable to generate assignment for formula ' | |
f'{formula}, libsbml can not parse the given ' | |
'expression.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would also work, matter of style I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I once had a style checker complain about this :D So slightly in favor of leaving it consistent :)
@dilpath There is a weird AMICI issue when importing AMICI in the notebook tests, that was not there yesterday (since then only the string of Error messages changed, but not the code in this PR). Do you have any idea, why this could be the case? |
Adds additional checks when the SBML is created, if e.g. parameter/species creation was successful (i.e. if the id is a valid SBML identifier) and if the math can be parsed...