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

fix notebooks fixes #114 #117

Merged
merged 1 commit into from
Mar 7, 2021
Merged

fix notebooks fixes #114 #117

merged 1 commit into from
Mar 7, 2021

Conversation

jvanhoefer
Copy link
Member

Fixed two issues in the notebooks

  • (Incorrect) error message in the "main Lotka Volterra" notebook
  • data type in the FSP example would yield incorrect YAML-model, if one would write the model to YAML

@codecov-io
Copy link

codecov-io commented Mar 7, 2021

Codecov Report

Merging #117 (48ff99b) into develop (3c45897) will increase coverage by 10.86%.
The diff coverage is 90.78%.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop     #117       +/-   ##
============================================
+ Coverage    77.85%   88.72%   +10.86%     
============================================
  Files            5        6        +1     
  Lines          429      461       +32     
============================================
+ Hits           334      409       +75     
+ Misses          95       52       -43     
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 89.86% <92.10%> (+14.48%) ⬆️
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...48ff99b. Read the comment docs.

@@ -79,7 +79,9 @@
" \n",
" model.add_ode(state_id = f\"x_{r}_{p}\", \n",
" right_hand_side=rhs,\n",
" initial_value=poisson.pmf(r, lambda_r)*poisson.pmf(p, lambda_p))\n",
" #convert from np.float to float\n",
Copy link
Member

Choose a reason for hiding this comment

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

might be good to perform float conversion inside the model always.

Copy link
Member Author

Choose a reason for hiding this comment

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

Marta once suggested to use pydantic here. Agree, that we should think of adding type-checks inside of the Model Editor

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.

3 participants