Skip to content

Commit

Permalink
Fuix channel selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Apr 2, 2024
1 parent cd619a4 commit 3c91119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ocf_datapipes/load/nwp/providers/excarta.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def open_excarta(zarr_path) -> xr.Dataset:
nwp = nwp.drop_vars(
["10m_wind_speed", "10m_wind_speed_angle", "100m_wind_speed", "100m_wind_speed_angle"]
)
nwp = nwp.to_dataarray(dim="channels")
nwp = nwp.to_dataarray(dim="channel")
# Sanity checks.
time = pd.DatetimeIndex(nwp.init_time_utc)
assert time.is_unique
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/select/filter_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(

def __iter__(self) -> Union[xr.DataArray, xr.Dataset]:
for xr_data in self.source_datapipe:
if "channels" not in xr_data.dims and isinstance(
if "channel" not in xr_data.dims and isinstance(
xr_data, xr.Dataset
): # Variables are in their own data variables, not channels
logger.debug(
Expand Down

0 comments on commit 3c91119

Please sign in to comment.