Skip to content

Commit

Permalink
Update generate_forecast_score_arrow.R
Browse files Browse the repository at this point in the history
  • Loading branch information
addelany authored Sep 19, 2024
1 parent 6a17cfd commit 0608455
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/generate_forecast_score_arrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ generate_forecast_score_arrow <- function(targets_df,
if(is.null(bucket) | is.null(endpoint)){
stop("scoring function needs bucket and endpoint if use_s3=TRUE")
}
vars <- arrow_env_vars()
#vars <- arrow_env_vars()
output_directory <- arrow::s3_bucket(bucket = bucket,
endpoint_override = endpoint)
unset_arrow_vars(vars)
#unset_arrow_vars(vars)
}else{
if(is.null(local_directory)){
stop("scoring function needs local_directory if use_s3=FALSE")
Expand All @@ -44,4 +44,4 @@ generate_forecast_score_arrow <- function(targets_df,

arrow::write_dataset(df, path = output_directory, partitioning = c("site_id","model_id","reference_date"))

}
}

0 comments on commit 0608455

Please sign in to comment.