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

Commit a6e72f3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4ab9ad3 commit a6e72f3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

ocf_datapipes/config/model.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,11 @@ class Satellite(DataSourceMixin, TimeResolutionMixin, DropoutMixin):
502502
description="The temporal resolution (in minutes) of the data."
503503
"Note that this needs to be divisible by 5.",
504504
)
505-
satellite_scaling_methods: Optional[List[str]] = Field(['mean_std'],
506-
description='There are few ways to scale the satellite data. '
507-
'1. None, 2. mean_std, 3. min_max')
505+
satellite_scaling_methods: Optional[List[str]] = Field(
506+
["mean_std"],
507+
description="There are few ways to scale the satellite data. "
508+
"1. None, 2. mean_std, 3. min_max",
509+
)
508510

509511

510512
class HRVSatellite(DataSourceMixin, TimeResolutionMixin, DropoutMixin):

ocf_datapipes/training/pvnet_site.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
NWP_MEANS,
2525
NWP_STDS,
2626
RSS_MEAN,
27-
RSS_STD,
2827
RSS_RAW_MAX,
2928
RSS_RAW_MIN,
29+
RSS_STD,
3030
)
3131
from ocf_datapipes.utils.utils import (
3232
combine_to_single_dataset,
@@ -276,9 +276,9 @@ def construct_sliced_data_pipeline(
276276
roi_width_pixels=conf_sat.satellite_image_size_pixels_width,
277277
)
278278
scaling_methods = conf_sat.satellite_scaling_methods
279-
if 'min_max' in scaling_methods:
279+
if "min_max" in scaling_methods:
280280
sat_datapipe = sat_datapipe.normalize(min_values=RSS_RAW_MIN, max_values=RSS_RAW_MAX)
281-
if 'mean_std':
281+
if "mean_std":
282282
sat_datapipe = sat_datapipe.normalize(mean=RSS_MEAN, std=RSS_STD)
283283

284284
if "pv" in datapipes_dict:

0 commit comments

Comments
 (0)