From cad364bdf30da6ebed4557b99e18b9da09e5d67d Mon Sep 17 00:00:00 2001 From: James Fulton <41546094+dfulu@users.noreply.github.com> Date: Thu, 14 Mar 2024 18:11:03 +0000 Subject: [PATCH] Wrong variable name --- pvnet_app/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvnet_app/utils.py b/pvnet_app/utils.py index 3ede253..65b8f09 100644 --- a/pvnet_app/utils.py +++ b/pvnet_app/utils.py @@ -89,7 +89,7 @@ def preds_to_dataarray(preds, model, valid_times, gsp_ids): output_labels[output_labels.index("forecast_mw_plevel_50")] = "forecast_mw" else: output_labels = ["forecast_mw"] - normed_preds = normed_preds[..., np.newaxis] + preds = preds[..., np.newaxis] da = xr.DataArray( data=preds, @@ -190,4 +190,4 @@ def convert_dataarray_to_forecasts( forecasts.append(forecast) - return forecasts \ No newline at end of file + return forecasts