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 17, 2024
1 parent 4fbbf15 commit 23a749d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion pvnet/data/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 23a749d

Please sign in to comment.