Skip to content

Commit

Permalink
expand dims
Browse files Browse the repository at this point in the history
  • Loading branch information
dfulu committed Nov 6, 2023
1 parent dff7225 commit bc236d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvnet_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit bc236d7

Please sign in to comment.