Skip to content

Replace n with before (no after) in epix_slide #216

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 18 commits into from
Nov 13, 2022

Conversation

kenmawer
Copy link
Contributor

I somehow managed to break the other branch, so I put this in. This does not include random stuff from epi_slide.

@kenmawer kenmawer requested a review from brookslogan August 20, 2022 00:35
@brookslogan brookslogan changed the title Refactor epix_slide Replace n with before in epix_slide Aug 23, 2022
@brookslogan brookslogan changed the title Replace n with before in epix_slide Replace n with before (no after) in epix_slide Aug 23, 2022
@brookslogan
Copy link
Contributor

brookslogan commented Aug 23, 2022

Other TODOs

  • Check if before_num can be refactored out as I believe was done in in epi_slide PR. [It can be refactored out. Done.]

@brookslogan
Copy link
Contributor

brookslogan commented Aug 24, 2022

  • Decide whether/how to fix "#' 1. epix_slide() uses windows that are always right-aligned (in" [actually, the window extends infinitely far right, but in common use cases, data often ends before each ref_time_value; neither really looks exactly like right-alignment] --- [I did adjust this discussion a bit.]

This appears to cause errors when running tests within some interactive
sessions, e.g., from running tests (attaching `testthat`), then
`library(tidyverse)` (attaching `readr` and masking `local_edition` even if
`testthat` is re-`library`-ied in), then attempting to run tests again.
- Try to describe `before` in a similar manner as the PR for `epi_slide`
  `before`&`after` currently does.
- Fix some example discussion not yet adjusted for `before` being off by one
  relative to `n`.
- Update some discussion about differences between `epix_slide` and `epi_slide`
  `time_value` windows.
- Add tests for the `before` validation code
@brookslogan
Copy link
Contributor

Remaining TODOs:

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

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

@brookslogan brookslogan merged commit 245448a 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.

3 participants