Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 8, 2023
1 parent aefded6 commit b88af1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion ocf_datapipes/load/nwp/providers/icon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import numpy as np
import pandas as pd
import xarray as xr

Expand Down
4 changes: 1 addition & 3 deletions ocf_datapipes/select/select_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ def __iter__(self) -> Union[xr.DataArray, xr.Dataset]:
[v for v in xr_data.data_vars if v not in self.channels]
)
xr_data = xr_data.to_array(dim=self.dim_name)

Check warning on line 45 in ocf_datapipes/select/select_channels.py

View check run for this annotation

Codecov / codecov/patch

ocf_datapipes/select/select_channels.py#L45

Added line #L45 was not covered by tests
logger.debug(
f"Selecting Channels: {self.channels} out of {xr_data['channel'].values}"
)
logger.debug(f"Selecting Channels: {self.channels} out of {xr_data['channel'].values}")
xr_data = xr_data.sel({self.dim_name: list(self.channels)})
yield xr_data

0 comments on commit b88af1a

Please sign in to comment.