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

FIX batchkey enum bug #351

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions ocf_datapipes/batch/batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ class BatchKey(Enum):
gsp_x_osgb_fourier = auto()
gsp_time_utc_fourier = auto() # (batch_size, time, n_fourier_features)

# -------------- TIME -------------------------------------------
# Sine and cosine of date of year and time of day at every timestep.
# shape = (batch_size, n_timesteps)
# This is calculated for wind only inside datapipes.
wind_date_sin = auto()
wind_date_cos = auto()
wind_time_sin = auto()
wind_time_cos = auto()

# -------------- SUN --------------------------------------------
# Solar position at every timestep. shape = (batch_size, n_timesteps)
# The solar position data comes from two alternative sources: either the Sun pre-prepared
Expand Down Expand Up @@ -208,6 +199,15 @@ class BatchKey(Enum):
wind_solar_azimuth = auto()
wind_solar_elevation = auto()

# -------------- TIME -------------------------------------------
# Sine and cosine of date of year and time of day at every timestep.
# shape = (batch_size, n_timesteps)
# This is calculated for wind only inside datapipes.
wind_date_sin = auto()
wind_date_cos = auto()
wind_time_sin = auto()
wind_time_cos = auto()


class NWPBatchKey(Enum):
"""The names of the different elements of each NWP batch.
Expand Down
Loading