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

Remove time column from output #276

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion hewr/R/process_state_forecast.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ combine_training_and_eval_data <- function(train_dat,
) |>
with_prop_disease_ed_visits() |>
dplyr::select(-"Total") |>
dplyr::mutate(time = dplyr::dense_rank(.data$date)) |>
tidyr::pivot_longer(
c("Disease", "Other", "prop_disease_ed_visits"),
names_to = "disease",
Expand Down
1 change: 0 additions & 1 deletion hewr/tests/testthat/test_process_state_forecast.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ test_that("combine_training_and_eval_data works as expected", {

checkmate::assert_names(names(result),
permutation.of = c(
"time",
"date",
"data_type",
"disease",
Expand Down
5 changes: 3 additions & 2 deletions pipelines/diagnostic_report/template.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ format:
- custom.scss
embed-resources: false
params:
model_dir_raw: "/home/xum8/pyrenew-hew/private_data/pyrenew-test-output/covid-19_r_2024-11-22_f_2024-08-19_t_2024-11-16/model_runs/MN/" # pragma: allowlist-secret
model_dir_raw: "/Users/damon/Documents/GitHub/pyrenew-hew/pipelines/tests/private_data/covid-19_r_2024-12-21_f_2024-10-22_t_2024-12-20/model_runs/CA" # pragma: allowlist-secret
---
<!-- Would like embed-resources to be true, but the current version is problematic with blobfuse -->

Expand Down Expand Up @@ -184,7 +184,8 @@ figure_save_tbl |>
```{r Rt Plot}
#| title: Posterior Rt
date_time_map <- combined_dat |>
distinct(time, date)
distinct(date) |>
mutate(time = dense_rank(date) - 1)

last_training_date <- combined_dat |>
dplyr::filter(data_type == "train") |>
Expand Down
Loading