Skip to content

Commit

Permalink
update default value of forecast_date_window_size (close issue #93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serena-Wang committed Jan 4, 2021
1 parent c66d89a commit d77ccf1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- More user friendly color palettes when plotting a small number of intervals.
- Add `preprocess_truth_for_zoltar()` and `save_truth_for_zoltar()` for generating truth file for zoltar.
- Update `get_model_designations()` to return `NA` when model designations for outdated models are not available on Zoltar.
- Update default value of `forecast_date_window_size` to 0 in`load_latest_forecasts()` so that it looks for forecasts on the `latest_forecast_date` only.

## covidHubUtils 0.1.2

Expand Down
6 changes: 3 additions & 3 deletions R/load_latest_forecasts.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#' in 'yyyy-mm-dd' format. Defaults to the most recent forecast date in
#' Zoltar or the hub repo.
#' @param forecast_date_window_size The number of days across which to
#' look for recent forecasts. Defaults to 1, which means to only look
#' at the last_forecast_date.
#' look for recent forecasts. Defaults to 0, which means to only look
#' at the last_forecast_date only.
#' @param locations list of fips. Defaults to all locations with available forecasts.
#' @param types Character vector specifying type of forecasts to load: “quantile”
#' or “point”. Defaults to c(“quantile”, “point”)
Expand All @@ -29,7 +29,7 @@
load_latest_forecasts <- function (
models,
last_forecast_date,
forecast_date_window_size = 1,
forecast_date_window_size = 0,
locations,
types,
targets,
Expand Down
6 changes: 3 additions & 3 deletions man/load_latest_forecasts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d77ccf1

Please sign in to comment.