-
Notifications
You must be signed in to change notification settings - Fork 5
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
Issue #431: Remove observation process function #439
base: main
Are you sure you want to change the base?
Conversation
e320cce
to
45ea0ee
Compare
25294f9
to
9fd1c46
Compare
I think this should be good now. |
I think tolerance is a relative measure more than you think and so needs maybe some tuning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
3c12848
to
c882464
Compare
c882464
to
de46d96
Compare
61b811b
to
68a3a4e
Compare
e4b607c
to
4facafc
Compare
truncated_obs <- obs |> | ||
filter(.data$stime_upr <= obs_time) |> | ||
mutate(obs_time = obs_time) |> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's required I think
ptime_upr = .data$ptime_lwr + 1, | ||
stime_lwr = floor(.data$stime), | ||
stime_upr = .data$stime_lwr + 1, | ||
obs_time = obs_time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add obs_time vs using as a variable as previously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think later on in the code it is used as a part of the dataframe (this is what observe_process
was doing, so previously it was not used as a variable I think)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its coded as a variable on line 3 - if you just take it out of the mutate call I think it should all just work
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #439 +/- ##
==========================================
- Coverage 94.24% 94.09% -0.16%
==========================================
Files 16 15 -1
Lines 469 457 -12
==========================================
- Hits 442 430 -12
Misses 27 27 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
If we get this merged I can work on #430. |
Description
This PR closes #431.
It moves the mutating calls into the tests, vignettes, and sticker. It also slims them down to what is needed.
Checklist