Commit 5acc2690 authored by Cynthia Crowley's avatar Cynthia Crowley

Pass state_rp_vars() to compute_return_periods() in spinup, monthlies

parent 6e19c762
......@@ -63,6 +63,7 @@ def monthly_observed(config: Config, yearmon: str, meta_steps: Dict[str, Step])
steps += compute_return_periods(config.workspace(),
result_vars=config.lsm_rp_vars() if window == 1 else config.lsm_integrated_var_names(),
forcing_vars=config.forcing_rp_vars() if window==1 else config.forcing_integrated_var_names(),
state_vars=config.state_rp_vars() if window==1 else None,
yearmon=yearmon,
window=window)
......@@ -149,6 +150,7 @@ def monthly_forecast(config: Config,
steps += compute_return_periods(config.workspace(),
forcing_vars=config.forcing_rp_vars() if window==1 else config.forcing_integrated_var_names(),
result_vars=config.lsm_rp_vars() if window==1 else config.lsm_integrated_var_names(),
state_vars=config.state_rp_vars() if window==1 else None,
yearmon=yearmon,
window=window,
target=target,
......
......@@ -90,6 +90,7 @@ def spinup(config, meta_steps):
steps += compute_return_periods(config.workspace(),
result_vars=config.lsm_rp_vars() if window == 1 else config.lsm_integrated_var_names(),
forcing_vars=config.forcing_rp_vars() if window == 1 else config.forcing_integrated_var_names(),
state_vars=config.state_rp_vars() if window==1 else None,
yearmon=yearmon,
window=window)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment