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

Commit d6bc438

Browse files
committed
Fix normalization for deployment
1 parent 9cb642a commit d6bc438

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ocf_datapipes/training/pvnet_site.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
def normalize_pv(x: xr.DataArray):
4949
"""Normalize PV data"""
5050
# This is after the data has been temporally sliced, so have the year
51+
return x / normalization_values[2024]
52+
5153
year = x.time_utc.dt.year
5254

5355
# Add the effective_capacity_mwp to the dataset, indexed on the time_utc

ocf_datapipes/training/windnet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
def _normalize_wind_power(x: xr.DataArray):
5050
"""Normalize PV data"""
51+
return x / normalization_values[2024]
5152
# This is after the data has been temporally sliced, so have the year
5253
year = x.time_utc.dt.year
5354

0 commit comments

Comments
 (0)