Repository navigation
Update tutorials - #79
Conversation
dilpath
left a comment
There was a problem hiding this comment.
Thanks! Some comments apply to all notebooks, e.g. naming of inputs/outputs in the mapping table.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #79 +/- ##
==========================================
+ Coverage 95.13% 95.20% +0.06%
==========================================
Files 7 7
Lines 370 375 +5
==========================================
+ Hits 352 357 +5
Misses 18 18 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for the feedback! I have now implemented it. Lets now wait for AMICI to update, then we can update the code, and finally merge this PR. |
7142f1b to
ea834b8
Compare
d3366ae to
85c673c
Compare
Co-authored-by: BSnelling <branwen.snelling@crick.ac.uk> Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
85c673c to
62cdd34
Compare
dilpath
left a comment
There was a problem hiding this comment.
Looks good! Thanks. No need to resolve all comments in this PR -- can instead create issues and I can then resolve some of them too.
| experiment_ids = measurements["experimentId"].unique() | ||
|
|
||
| # experiments | ||
| # Each experiment consists of a single simulation period starting at t=0. | ||
| # No conditions are applied, so the `conditionId` column is left empty. | ||
| experiments = { | ||
| "experimentId": experiment_ids, | ||
| "time": [0] * len(experiment_ids), | ||
| "conditionId": [None] * len(experiment_ids), | ||
| } | ||
| pd.DataFrame(experiments).to_csv( | ||
| save_directory / "experiments.tsv", sep="\t", index=False | ||
| ) |
There was a problem hiding this comment.
Experiments/conditions table is optional in PEtab v2
There was a problem hiding this comment.
In general we could delete all outputs of the cells in all notebooks, and only render them on readthedocs
There was a problem hiding this comment.
Opened an issue for this one: #94
At the moment the outputs from some cells are included in order to make the docs read nicely, while others are deleted because their outputs are long/don't render nicely/include warnings. It'll be a bit of work to update them so they all execute cleanly (and prettily) so I'll make that a separate PR.
There was a problem hiding this comment.
Ah OK. Fine for me if those "ugly" cells just have their output disabled if possible in the notebook, if it's some effort to make it pretty.
This PR updates the PEtab-SciML tutorials to:
data.
The tutorial text is ready for review. The code snippets and accompanying PEtab files are
currently outdated and will be updated once the linter is in place. This can be done at a
later stage, and the PR should not be merged until then.
This PR is related to completing #23