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
rqthomas committed Feb 23, 2024
1 parent 947a7e4 commit 8efbfa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/generate_forecast_score_arrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ generate_forecast_score_arrow <- function(targets_file,
reference_datetime_format <- "%Y-%m-%d %H:%M:%S"

df <- df |> dplyr::mutate(reference_datetime = strftime(lubridate::as_datetime(reference_datetime),format=reference_datetime_format,tz = "UTC"),
date = lubridate::as_date(datetime))
reference_date = lubridate::as_date(datetime))

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

}

0 comments on commit 8efbfa3

Please sign in to comment.