Skip to content

Remove Code that Generates Point Exclusions File for Old Pipeline (Once we Retire Old Pipeline) #259

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

Open
PatrickTCorbett opened this issue Apr 28, 2025 · 1 comment

Comments

@PatrickTCorbett
Copy link
Collaborator

PatrickTCorbett commented Apr 28, 2025

Part of "utils/Rt_review_exclusions.R" is dedicated to creating a point exclusions outlier csv file for the old pipeline (as opposed to manually typing in the point exclusions). See below for code segment.

When we retire the old pipeline we should make sure to delete this segment as well as it will no longer serve a purpose

`

Temp old-pipeline csv generator#####

# Save a version in temp folder.
# Need to copy and paste this in current blank outlier csv file
point_exclusions <- combined_df |>
  dplyr::filter(!is.na(drop_dates)) |>
  dplyr::mutate(
    raw_confirm = NA,
    clean_confirm = NA
  ) |>
  dplyr::select(
    reference_date,
    report_date,
    "geo_value",
    "pathogen"
  ) |>
  dplyr::mutate(
    geo_value = tolower(geo_value),
    pathogen = dplyr::case_when(pathogen == "Influenza" ~ "flu",
      pathogen == "COVID-19" ~ "covid",
      .default = as.character(pathogen)
    )
  )

message(paste0(
  "saving ",
  paste0(lubridate::ymd(report_date), ".csv"),
  " in ", containter_name,
  "/temp_outliers_for_old"
))
AzureStor::storage_write_csv(
  cont = cont,
  object = point_exclusions,
  file = file.path(
    "temp_outliers_for_old",
    paste0(lubridate::ymd(report_date), ".csv")
  )
)

`

@athowes
Copy link
Collaborator

athowes commented May 23, 2025

@PatrickTCorbett any blockers on addressing this?

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

No branches or pull requests

2 participants