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 19, 2024
1 parent 8c62a54 commit 934e034
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pvnet/data/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def _get_streamed_samples_dataset(self, start_time, end_time) -> Dataset:
elif self.configuration.renewable == "site":
return SitesDataset(self.configuration, start_time=start_time, end_time=end_time)
else:
raise ValueError(f"Unknown renewable: {self.configuration.renewable}, renewable value should either be uk_pv or site")
raise ValueError(
f"Unknown renewable: {self.configuration.renewable}, renewable value should either be uk_pv or site"
)

def _get_premade_samples_dataset(self, subdir) -> Dataset:
split_dir = f"{self.sample_dir}/{subdir}"
Expand Down

0 comments on commit 934e034

Please sign in to comment.