-
Notifications
You must be signed in to change notification settings - Fork 32
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
Substitute nested ifelse
with data.table::fcase()
#383
Conversation
ifelse
with data.table::fcase()
ifelse
with data.table::fcase()
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 82053ed is merged into main:
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if bf4080d is merged into main:
|
ifelse
with data.table::fcase()
ifelse
with data.table::fcase()
Are you waiting for review on this @jamesmbaazam? Before I can review it would ideally be passing CI checks or there would be some detail on why it isn't and why that is okay |
No, I'm not waiting. I am about to try and fix the checks. |
…message" This reverts commit 7b63d9b.
No success so far! The problem seems to come from somewhere within |
I've incremented the dev version and added a news item here 276af42. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if a7c8f1f is merged into main:
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if ddcafca is merged into main:
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 491ba64 is merged into main:
|
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.
Very nearly. Just a few style, detail, and infra quirks to update.
NEWS.md
Outdated
# EpiNow2 1.3.6.2000 | ||
# EpiNow2 (development version) | ||
|
||
# EpiNow2 1.3.6.2001 |
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.
This can be just epinow2 1.3.6 it doesn't need the nested title
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.
This has been fixed in 37786f0.
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 22c387b is merged into main:
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 7274c21 is merged into main:
|
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 to me - thanks James.
Maybe worth setting up a call between you, seb, and me to debrief how you felt about this and things we could do better in the review process.
Just waiting for checks to pass and then will merge.
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 to me - thanks James.
Maybe worth setting up a call between you, seb, and me to debrief how you felt about this and things we could do better in the review process.
Just waiting for checks to pass and then will merge.
Thanks for reviewing, Sam. I agreed that we should set up a call. My schedule is usually open on Mondays, Tuesdays, and Fridays. |
Friday morning this week or Monday morning works for me. |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 83ad88a is merged into main:
|
* updated gitignore * replaced ifelse with fcase in map_prob_change() * revised explicit breakpoints for the categories * replace nested ifelse() with data.table::fcase() in create_backcalc_data() * set the default samples argument to 1000 and added a warning message * replaced ifelse with data.table::fcase in create_gp_data() * replaced ifelse with fcase in create_initial_conditions() * moved warning message into rightful place (inside the if() block) * replaced ifelse with data.table::fcase in regional_summary() * replaced ifelse with data.table::fcase in format_fit() * linting: removed nolint tags and unnecessary whitespace, and added proper comment tags in examples * Revert "set the default samples argument to 1000 and added a warning message" This reverts commit 7b63d9b. * register fcase import * redoc create_backcalc_data * make rho an array * linting: remove whitespace * added a condition for when date is NA * removed linting gates * fixed indentation * added James Azam as contributor * removed a space * incremented the version and added a news item * removed a space * linting: removed whitespace and added lint gates * redoc'd package * incremented dev version * changed package version in NEWS * Updated news entry to link PR * fixed indentation * remove space * fix space --------- Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
This PR replaces all occurrences of nested
ifelse
withdata.table::fcase()
and fixes #379. Each commit mentions the function that was changed, making it easier to roll back to in case of any consequences of the change.