Skip to contents

Assemble pipeline metadata for a given run, returning it as a list and writing it to disk as a YAML file.

Usage

get_pipeline_metadata(
  us_run,
  dir_to_save_metadata,
  run_id,
  date_run,
  ww_data_path,
  hosp_data_dir,
  forecast_date,
  prod_run,
  model_type,
  location,
  output_dir,
  root_dir,
  ...
)

Arguments

us_run

Was the model run for the US as a whole in addition to states and territories? If so, this will be recorded. Boolean.

dir_to_save_metadata

Subdirectory in which to save the resultant metadata file.

run_id

Unique ID of the pipeline run (as a hash generated at runtime).

date_run

Date the pipeline was run.

hosp_data_dir

Subdirectory in which hospital admissions data used for the run is stored.

forecast_date

Forecast date targeted by the run.

prod_run

Is this a production run? Boolean.

model_type

What was the model type for this run?

location

What location(s) besides the US as a whole were run?

output_dir

What output directory was used to store run output.

root_dir

root directory where pipeline is being run, used to make absolute filepaths

...

Other keyword arguments, for compatibility with do.call on a large parameter list.

ww_data_dir

Subdirectory in which wastewater data used for the run is stored.

Value

the metadata, as a list.