Skip to content

Commit

Permalink
Merge pull request #55 from openclimatefix/dfulu-patch-1
Browse files Browse the repository at this point in the history
Wrong variable name
  • Loading branch information
peterdudfield authored Mar 17, 2024
2 parents 91e9804 + cad364b commit 6d78762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvnet_app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -190,4 +190,4 @@ def convert_dataarray_to_forecasts(

forecasts.append(forecast)

return forecasts
return forecasts

0 comments on commit 6d78762

Please sign in to comment.