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

Allow setting state with index #378

Merged
merged 4 commits into from Nov 21, 2022
Merged

Allow setting state with index #378

merged 4 commits into from Nov 21, 2022

Conversation

richfitz
Copy link
Member

@richfitz richfitz commented Nov 21, 2022

This exists already in mode and is actually very useful, even though we've removed the need for it in mode (this existed to support setting the stochasic variables before we implemented direct stochasic simulation). Getting this working on the GPU is a bit of a faff and I'm feeling we might defer that until after the merge is complete because there will likely be a few other GPU tweaks.

The use case for this soon is to support zeroing some variables periodically, so that we can turn cumulative measurements into daily measurements, as pomp does. But also just to smooth over the difference with mode of course.

richfitz and others added 4 commits November 21, 2022 08:46
This exists already in mode and is actually very useful, even though
we've removed the need for it in mode (this existed to support
setting the stochasic variables before we implemented direct
stochasic simulation). Getting this working on the GPU is a bit of
a faff and I'm feeling we might defer that until after the merge is
complete because there will likely be a few other GPU tweaks.

The use case for this soon is to support zeroing some variables
periodically, so that we can turn cumulative measurements into daily
measurements, as pomp does.  But also just to smooth over the difference
with mode of course.
@codecov
Copy link

codecov bot commented Nov 21, 2022

Codecov Report

Base: 99.83% // Head: 99.74% // Decreases project coverage by -0.08% ⚠️

Coverage data is based on head (bd802b7) compared to base (3002ec3).
Patch coverage: 89.28% of modified lines in pull request are covered.

❗ Current head bd802b7 differs from pull request most recent head d4405f4. Consider uploading reports for the commit d4405f4 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #378      +/-   ##
==========================================
- Coverage   99.83%   99.74%   -0.09%     
==========================================
  Files          68       68              
  Lines        3547     3564      +17     
==========================================
+ Hits         3541     3555      +14     
- Misses          6        9       +3     
Impacted Files Coverage Δ
inst/include/dust/r/helpers.hpp 100.00% <ø> (ø)
inst/include/dust/gpu/dust_gpu.hpp 99.25% <66.66%> (-0.38%) ⬇️
inst/include/dust/r/dust.hpp 98.19% <89.47%> (-0.68%) ⬇️
inst/include/dust/dust_cpu.hpp 100.00% <100.00%> (ø)
inst/include/dust/particle.hpp 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@richfitz richfitz marked this pull request as ready for review November 21, 2022 09:11
@richfitz richfitz merged commit 45f9cc5 into master Nov 21, 2022
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.

None yet

2 participants