Skip to content

Updated epi_slide to use before and after and added checks #188

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

Merged
merged 43 commits into from
Nov 13, 2022

Conversation

kenmawer
Copy link
Contributor

@kenmawer kenmawer commented Aug 6, 2022

Note that epix_slide has been untouched.

Resolves issue #161.

Copy link
Contributor

@brookslogan brookslogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Main requested changes: tweaks to the documentation to try to clarify a bit. I've also noted some edge cases not caught by the before&after validation, seem pretty low-probability but while it's on our minds probably should add the checks. + some misc minor things.

Please address + re-request review (and maybe ping me on Slack). Remaining TODO on my end: double-check that we've stamped out all references to n and align in code, docs, tests, examples, vignettes.

@kenmawer kenmawer requested a review from brookslogan August 10, 2022 20:28
@kenmawer
Copy link
Contributor Author

kenmawer commented Aug 15, 2022

Note: #203 should be used after this due to the former also incorporating changes to epix_slide.

@kenmawer
Copy link
Contributor Author

Add case for centre alignment.

@kenmawer kenmawer requested a review from dajmcdon August 16, 2022 21:57
Copy link
Contributor

@dajmcdon dajmcdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor bit of confusion, and one comment to be approved by @brookslogan .

@brookslogan
Copy link
Contributor

brookslogan commented Aug 18, 2022

Remaining TODO on my end: double-check that we've stamped out all references to n and align in code, docs, tests, examples, vignettes.

  • I just did a cursory search (rg (ripgrep)-ing for "n"). It looks like the intro paragraph to slide.Rmd still needs updated. [Done]

@kenmawer kenmawer requested a review from brookslogan August 20, 2022 00:31
- Raise error, not warning, if both `before` and `after` are missing
- Substantially reword docs for `before, after`
- Actually deliver an integer to `time_step` as currently advertised
- Slightly loosen and rearrange validation of `before`, `after` to ease
  conversion to integer.  Looseness is from allowing things that can be cast to
  appropriate integers, rather than requiring integer-like numerics.
- Remove reference to `n` in slide vignette intro.
- Update .Rd files with some older roxygen changes.
- Fix "`time_value`s" -> "time steps" in `detect_outlr_rm` docs, and slightly
  tweak wording.
@brookslogan
Copy link
Contributor

brookslogan commented Aug 23, 2022

Maybe Dan TODO:

  • Sanity-check the before&after roxygen docs I substantially changed

My TODOs:

  • Is before and after validation too strict? We may want to form running windows by using, e.g., before=Inf. May want to allow Inf here, and update the time_step docs to be match. Furthermore, check whether Inf should be the default instead of 0 in some places. Consider compatibility with epix_slide's implicit after=Inf. (And epix_slide could reasonably have a default before=Inf while epi_slide could not.) Inf might not work right now if it were allowed; allowing Inf could be a separate issue. (Sys.Date()-Inf prints as NA, but actually, as.numeric(Sys.Date()-Inf) is -Inf, so maybe it would work if we kept the validation loose and didn't use a custom time_step?)
  • Check the pkg checks
  • Implement idea from Periodically bump version, perform GitHub release, maintain news/changelog #177 before merging.

@brookslogan brookslogan changed the base branch from main to dev November 13, 2022 20:42
@brookslogan
Copy link
Contributor

Merging into dev as is. Remaining items can be addressed separately there before release.

@brookslogan brookslogan merged commit 8b00b3b into cmu-delphi:dev Nov 13, 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.

5 participants