Skip to content
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

Merged
merged 12 commits into from
Mar 11, 2021
Merged

Feature check sbml success #118

merged 12 commits into from
Mar 11, 2021

Conversation

jvanhoefer
Copy link
Member

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...

@codecov-io
Copy link

codecov-io commented Mar 8, 2021

Codecov Report

Merging #118 (0f3c7cb) into develop (3c45897) will increase coverage by 9.30%.
The diff coverage is 84.00%.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ
yaml2sbml/YamlModel.py 84.00% <77.77%> (-0.49%) ⬇️
yaml2sbml/yaml_validation.py 89.65% <77.77%> (+17.65%) ⬆️
yaml2sbml/yaml2sbml.py 85.18% <80.64%> (+9.80%) ⬆️
yaml2sbml/__init__.py 100.00% <100.00%> (ø)
yaml2sbml/version.py 100.00% <100.00%> (ø)
yaml2sbml/yaml2PEtab.py 94.17% <100.00%> (+23.46%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa62bc2...0f3c7cb. Read the comment docs.

Comment on lines 469 to 470
f'{species_id}, libsbml can not parse the right '
f'hand side, given by {formula}).')
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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}).')

Comment on lines +339 to +341
raise RuntimeError(f'Unable to generate assignment for formula '
f'{formula}, libsbml can not parse the given '
f'expression.')
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.')

Copy link
Member

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

Copy link
Member Author

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 :)

@jvanhoefer
Copy link
Member Author

@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?

@jvanhoefer jvanhoefer merged commit bed9158 into develop Mar 11, 2021
@jvanhoefer jvanhoefer deleted the feature_check_SBML_success branch March 11, 2021 22:04
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.

4 participants