From bd334bd0783938dcc3d41000c1eae33de4dd9c15 Mon Sep 17 00:00:00 2001 From: Zwart Date: Thu, 12 Sep 2024 07:50:38 -0700 Subject: [PATCH] prod to main for rawgithub --- baseline_models/models/aquatics_climatology.R | 2 +- dashboard/instructions.qmd | 8 ++++---- dashboard/targets.qmd | 2 +- drivers/download_stage1_pseudo.R | 2 +- drivers/generate_stage3.R | 2 +- drivers/update_stage3.R | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/baseline_models/models/aquatics_climatology.R b/baseline_models/models/aquatics_climatology.R index cec60aae09..031656e5c9 100644 --- a/baseline_models/models/aquatics_climatology.R +++ b/baseline_models/models/aquatics_climatology.R @@ -24,7 +24,7 @@ targets <- readr::read_csv(config$target_groups$aquatics$targets_file, show_col_types = F) sites <- readr::read_csv(paste0("https://github.com/eco4cast/usgsrc4cast-ci/", - "raw/prod/USGS_site_metadata.csv"), + "raw/main/USGS_site_metadata.csv"), show_col_types = F) # calculates a doy average for each target variable in each site diff --git a/dashboard/instructions.qmd b/dashboard/instructions.qmd index fad33e0220..f5b3044751 100644 --- a/dashboard/instructions.qmd +++ b/dashboard/instructions.qmd @@ -175,8 +175,8 @@ The csv file can only contain one unique `model_id` and one unique `project_id`. The submit function is available using the following code in R ```{r eval = FALSE} -source("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/prod/R/eco4cast-helpers/submit.R") -source("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/prod/R/eco4cast-helpers/forecast_output_validator.R") +source("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/main/R/eco4cast-helpers/submit.R") +source("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/main/R/eco4cast-helpers/forecast_output_validator.R") submit(forecast_file = "project_id-year-month-day-model_id.csv", project_id = "usgsrc4cast") ``` @@ -191,8 +191,8 @@ def download_and_exec_script(url): response.raise_for_status() exec(response.text, globals()) -download_and_exec_script("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/prod/python/submit.py") -download_and_exec_script("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/prod/python/forecast_output_validator.py") +download_and_exec_script("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/main/python/submit.py") +download_and_exec_script("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/main/python/forecast_output_validator.py") submit(forecast_file = "project_id-year-month-day-model_id.csv", project_id = "usgsrc4cast") ``` diff --git a/dashboard/targets.qmd b/dashboard/targets.qmd index 55248f3cbb..a162745c33 100644 --- a/dashboard/targets.qmd +++ b/dashboard/targets.qmd @@ -11,7 +11,7 @@ aquatics_focal_sites <- c("USGS-05553700", "USGS-14211720") ``` ```{r message=FALSE, echo = FALSE} -target_metadata <- readr::read_csv("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/prod/targets/in/controlled_vocab_targets.csv") +target_metadata <- readr::read_csv("https://raw.githubusercontent.com/eco4cast/usgsrc4cast-ci/main/targets/in/controlled_vocab_targets.csv") ``` ```{r echo = FALSE} diff --git a/drivers/download_stage1_pseudo.R b/drivers/download_stage1_pseudo.R index e940df9961..5c15b46759 100644 --- a/drivers/download_stage1_pseudo.R +++ b/drivers/download_stage1_pseudo.R @@ -10,7 +10,7 @@ driver_bucket <- stringr::word(config$driver_bucket, 1, sep = "/") driver_path <- stringr::word(config$driver_bucket, 2, -1, sep = "/") sites <- readr::read_csv(paste0("https://github.com/eco4cast/usgsrc4cast-ci/", - "raw/prod/USGS_site_metadata.csv"), + "raw/main/USGS_site_metadata.csv"), col_select = c("site_id", "latitude", "longitude")) Sys.setenv("GEFS_VERSION"="v12") diff --git a/drivers/generate_stage3.R b/drivers/generate_stage3.R index 5987853513..61211ba060 100644 --- a/drivers/generate_stage3.R +++ b/drivers/generate_stage3.R @@ -20,7 +20,7 @@ df <- arrow::open_dataset("pseudo") |> site_list <- readr::read_csv(paste0("https://github.com/eco4cast/usgsrc4cast-ci/", - "raw/prod/USGS_site_metadata.csv"), + "raw/main/USGS_site_metadata.csv"), show_col_types = FALSE) diff --git a/drivers/update_stage3.R b/drivers/update_stage3.R index 47411bf878..4d1a92c0a5 100644 --- a/drivers/update_stage3.R +++ b/drivers/update_stage3.R @@ -3,7 +3,7 @@ library(gefs4cast) source("R/eco4cast-helpers/to_hourly.R") site_list <- readr::read_csv(paste0("https://github.com/eco4cast/usgsrc4cast-ci/", - "raw/prod/USGS_site_metadata.csv"), + "raw/main/USGS_site_metadata.csv"), show_col_types = FALSE) Sys.setenv("GEFS_VERSION"="v12")