Skip to content

Commit

Permalink
Fix normalization for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Mar 27, 2024
1 parent 9cb642a commit d6bc438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocf_datapipes/training/pvnet_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
def normalize_pv(x: xr.DataArray):
"""Normalize PV data"""
# This is after the data has been temporally sliced, so have the year
return x / normalization_values[2024]

year = x.time_utc.dt.year

# Add the effective_capacity_mwp to the dataset, indexed on the time_utc
Expand Down
1 change: 1 addition & 0 deletions ocf_datapipes/training/windnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

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

Expand Down

0 comments on commit d6bc438

Please sign in to comment.