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

Commit 5895f54

Browse files
authored
Merge pull request #351 from openclimatefix/FIX-batchkey-enum-bug
FIX batchkey enum bug
2 parents ed424ad + c48bcd3 commit 5895f54

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ocf_datapipes/batch/batches.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,6 @@ class BatchKey(Enum):
118118
gsp_x_osgb_fourier = auto()
119119
gsp_time_utc_fourier = auto() # (batch_size, time, n_fourier_features)
120120

121-
# -------------- TIME -------------------------------------------
122-
# Sine and cosine of date of year and time of day at every timestep.
123-
# shape = (batch_size, n_timesteps)
124-
# This is calculated for wind only inside datapipes.
125-
wind_date_sin = auto()
126-
wind_date_cos = auto()
127-
wind_time_sin = auto()
128-
wind_time_cos = auto()
129-
130121
# -------------- SUN --------------------------------------------
131122
# Solar position at every timestep. shape = (batch_size, n_timesteps)
132123
# The solar position data comes from two alternative sources: either the Sun pre-prepared
@@ -208,6 +199,15 @@ class BatchKey(Enum):
208199
wind_solar_azimuth = auto()
209200
wind_solar_elevation = auto()
210201

202+
# -------------- TIME -------------------------------------------
203+
# Sine and cosine of date of year and time of day at every timestep.
204+
# shape = (batch_size, n_timesteps)
205+
# This is calculated for wind only inside datapipes.
206+
wind_date_sin = auto()
207+
wind_date_cos = auto()
208+
wind_time_sin = auto()
209+
wind_time_cos = auto()
210+
211211

212212
class NWPBatchKey(Enum):
213213
"""The names of the different elements of each NWP batch.

0 commit comments

Comments
 (0)