Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 109c9eb

Browse files
committed
fix
1 parent 4f2cadb commit 109c9eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ocf_datapipes/load/gsp/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def put_gsp_data_into_an_xr_dataarray(
1111
gsp_id: np.ndarray,
1212
x_osgb: np.ndarray,
1313
y_osgb: np.ndarray,
14-
capacity_mwp: np.ndarray,
14+
capacity_megawatt_power: np.ndarray,
1515
) -> xr.DataArray:
1616
"""
1717
Converts the GSP data to Xarray DataArray
@@ -22,7 +22,7 @@ def put_gsp_data_into_an_xr_dataarray(
2222
gsp_id: Id of the GSPs
2323
x_osgb: OSGB X coordinates
2424
y_osgb: OSGB y coordinates
25-
capacity_mwp: Capacity of each GSP
25+
capacity_megawatt_power: Capacity of each GSP
2626
2727
Returns:
2828
Xarray DataArray of the GSP data
@@ -36,7 +36,7 @@ def put_gsp_data_into_an_xr_dataarray(
3636
data_array = data_array.assign_coords(
3737
x_osgb=("gsp_id", x_osgb),
3838
y_osgb=("gsp_id", y_osgb),
39-
capacity_mwp=(("time_utc", "gsp_id"), capacity_mwp),
39+
capacity_mwp=(("time_utc", "gsp_id"), capacity_megawatt_power),
4040
)
4141
return data_array
4242

0 commit comments

Comments
 (0)