From 23a749dd349a9bd0081d4935e339c6a9ec6e9c73 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:22:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../datamodule/configuration/site_example_configuration.yaml | 2 +- pvnet/data/datamodule.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs.example/datamodule/configuration/site_example_configuration.yaml b/configs.example/datamodule/configuration/site_example_configuration.yaml index 157e7541..a8cfadeb 100644 --- a/configs.example/datamodule/configuration/site_example_configuration.yaml +++ b/configs.example/datamodule/configuration/site_example_configuration.yaml @@ -40,7 +40,7 @@ input_data: - v10 # 10-metre V component of wind speed - v100 # 100-metre V component of wind speed - v200 # 200-metre V component of wind speed - image_size_pixels_height: 24 + image_size_pixels_height: 24 image_size_pixels_width: 24 dropout_timedeltas_minutes: [-360] dropout_fraction: 1.0 diff --git a/pvnet/data/datamodule.py b/pvnet/data/datamodule.py index 4df4dd81..8cd72411 100644 --- a/pvnet/data/datamodule.py +++ b/pvnet/data/datamodule.py @@ -94,7 +94,9 @@ def __init__( def _get_streamed_samples_dataset(self, start_time, end_time) -> Dataset: if self.configuration.renewable == "pv": - return PVNetUKRegionalDataset(self.configuration, start_time=start_time, end_time=end_time) + return PVNetUKRegionalDataset( + self.configuration, start_time=start_time, end_time=end_time + ) elif self.configuration.renewable in ["wind", "pv_india", "pv_site"]: return SitesDataset(self.configuration, start_time=start_time, end_time=end_time) else: