From bc236d7172bd073b276c17674d04991b5cb74930 Mon Sep 17 00:00:00 2001 From: James Fulton Date: Mon, 6 Nov 2023 16:50:17 +0000 Subject: [PATCH] expand dims --- pvnet_app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 9d49d80..bf5d238 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -512,7 +512,7 @@ def app( # Multiply normalised forecasts by capacities and clip negatives logger.info(f"Converting to absolute MW using {gsp_capacities}") - da_abs = da_normed.clip(0, None) * gsp_capacities.values + da_abs = da_normed.clip(0, None) * gsp_capacities.values[: None, None] max_preds = da_abs.sel(output_label="forecast_mw").max(dim="target_datetime_utc") logger.info(f"Maximum predictions: {max_preds}")