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 Dec 5, 2023
1 parent feb9f04 commit d530328
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pvnet/data/wind_datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def _get_premade_batches_datapipe(self, subdir, shuffle=False):
filenames=list(glob.glob(f"{self.batch_dir}/{subdir}/*.nc")),
)
data_pipeline = (

Check warning on line 97 in pvnet/data/wind_datamodule.py

View check run for this annotation

Codecov / codecov/patch

pvnet/data/wind_datamodule.py#L97

Added line #L97 was not covered by tests
data_pipeline.batch(self.batch_size).map(stack_np_examples_into_batch).map(batch_to_tensor)
data_pipeline.batch(self.batch_size)
.map(stack_np_examples_into_batch)
.map(batch_to_tensor)
)
if shuffle:
data_pipeline = (
Expand Down

0 comments on commit d530328

Please sign in to comment.