mrc-ide / odin

ᚩ A DSL for describing and solving differential equations in R
https://mrc-ide.github.io/odin
Other
102 stars 12 forks source link

Add new dust.js based discrete/stochastic runner #273

Closed richfitz closed 1 year ago

richfitz commented 1 year ago

Merges into the epic branch #257

This PR updates things to use the new dust.js based runner. I've tried to be less "clever" in glossing over the interface differences between the discrete and continuous time models, which results in a bit of duplication but less weirdness. Once things settle we can probably tidy this up a bit.

Depends on https://github.com/mrc-ide/dust-js/pull/6 and https://github.com/mrc-ide/dust-js/pull/7

codecov[bot] commented 1 year ago

Codecov Report

Base: 99.11% // Head: 99.52% // Increases project coverage by +0.41% :tada:

Coverage data is based on head (1910cef) compared to base (6769fb5). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## mrc-3182 #273 +/- ## ============================================ + Coverage 99.11% 99.52% +0.41% ============================================ Files 46 46 Lines 5174 5270 +96 ============================================ + Hits 5128 5245 +117 + Misses 46 25 -21 ``` | [Impacted Files](https://codecov.io/gh/mrc-ide/odin/pull/273?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide) | Coverage Δ | | |---|---|---| | [R/generate\_js\_equation.R](https://codecov.io/gh/mrc-ide/odin/pull/273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide#diff-Ui9nZW5lcmF0ZV9qc19lcXVhdGlvbi5S) | `100.00% <ø> (ø)` | | | [R/generate\_js.R](https://codecov.io/gh/mrc-ide/odin/pull/273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide#diff-Ui9nZW5lcmF0ZV9qcy5S) | `100.00% <100.00%> (+6.45%)` | :arrow_up: | | [R/generate\_js\_sexp.R](https://codecov.io/gh/mrc-ide/odin/pull/273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide#diff-Ui9nZW5lcmF0ZV9qc19zZXhwLlI=) | `100.00% <100.00%> (+6.06%)` | :arrow_up: | | [R/js.R](https://codecov.io/gh/mrc-ide/odin/pull/273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide#diff-Ui9qcy5S) | `99.52% <100.00%> (+0.97%)` | :arrow_up: | | [R/js\_bundle.R](https://codecov.io/gh/mrc-ide/odin/pull/273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide#diff-Ui9qc19idW5kbGUuUg==) | `100.00% <100.00%> (+8.33%)` | :arrow_up: | | [R/generate\_js\_util.R](https://codecov.io/gh/mrc-ide/odin/pull/273/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide#diff-Ui9nZW5lcmF0ZV9qc191dGlsLlI=) | `100.00% <0.00%> (+2.56%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mrc-ide)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.