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

Commit 53a2e6d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 43af752 commit 53a2e6d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ocf_datapipes/training/pvnet_site.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
import xarray as xr
77
from torch.utils.data import IterDataPipe, functional_datapipe
88
from torch.utils.data.datapipes.iter import IterableWrapper
9-
from ocf_datapipes.batch import BatchKey, NumpyBatch
109

11-
from ocf_datapipes.batch import MergeNumpyModalities, MergeNWPNumpyModalities
10+
from ocf_datapipes.batch import BatchKey, MergeNumpyModalities, MergeNWPNumpyModalities
1211
from ocf_datapipes.training.common import (
1312
DatapipeKeyForker,
1413
_get_datapipes_dict,

ocf_datapipes/training/windnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def __init__(self, filenames: List[str], keys: List[str]):
123123

124124
def __iter__(self):
125125
"""Iterate through each filename, loading it, uncombining it, and then yielding it"""
126-
import numpy as np
127126

128127
while True:
129128
for filename in self.filenames:

0 commit comments

Comments
 (0)