Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit acbc90a

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

File tree

8 files changed

+0
-13
lines changed

8 files changed

+0
-13
lines changed

notebooks/good_and_bad_results.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
traces = []
2929
subplot_titles = []
3030
for i in range(len(all_indexes)):
31-
3231
print(i)
3332

3433
index = all_indexes[i] % 32

nowcasting_utils/metrics/plot.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def make_forecast_horizon_metrics(results_df, normalize: bool = False) -> List[g
6363
forecast_horizon_metrics = {}
6464
# loop over the number of forecast horizons
6565
for i in range(n_forecast_hoirzons):
66-
6766
forecast_horizon = (i + 1) * time_delta
6867
forecast_horizon_hours = forecast_horizon.seconds / 3600
6968

@@ -92,7 +91,6 @@ def make_forecast_horizon_metrics(results_df, normalize: bool = False) -> List[g
9291
trace_forecast_horizons = []
9392
# loop over the different columns / metrics and plot them
9493
for i in range(len(plotting_metrics)):
95-
9694
col = plotting_metrics[i]
9795
colour = colours[i]
9896

@@ -127,7 +125,6 @@ def make_gsp_id_metrics(
127125
n_gsp_ids = int(results_df["gsp_id"].max())
128126
gsp_metrics = {}
129127
for i in range(n_gsp_ids):
130-
131128
gsp_id = i + 1
132129

133130
results_df_one_forecast_hoirzon = results_df[results_df["gsp_id"] == gsp_id]
@@ -146,7 +143,6 @@ def make_gsp_id_metrics(
146143
# plot metrics
147144
trace_gsp_id = []
148145
for i in range(len(plotting_metrics)):
149-
150146
col = plotting_metrics[i]
151147
colour = colours[i]
152148

@@ -202,7 +198,6 @@ def make_t0_datetime_utc_metrics(results_df, normalize: bool = False) -> (go.Sca
202198
)
203199

204200
for i in range(len(target_datetimes_utc)):
205-
206201
target_datetime_utc = target_datetimes_utc[i]
207202

208203
results_df_one_datetime = results_df[
@@ -221,7 +216,6 @@ def make_t0_datetime_utc_metrics(results_df, normalize: bool = False) -> (go.Sca
221216
# plot metrics
222217
trace_gsp_id = []
223218
for i in range(len(plotting_metrics)):
224-
225219
col = plotting_metrics[i]
226220
colour = colours[i]
227221

nowcasting_utils/metrics/validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def make_validation_results(
5151
# TODO #64 vectorize
5252
n_forecast_timesteps = predictions_mw.shape[1]
5353
for i in range(n_forecast_timesteps):
54-
5554
if len(capacity_mwp.shape) == 1:
5655
capacity_time_step = capacity_mwp
5756
else:

nowcasting_utils/visualization/data_sources/plot_gsp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def get_traces_gsp_intensity(gsp: GSP, example_index: int):
6868
traces = []
6969

7070
for t_index in range(len(time)):
71-
7271
trace = get_trace_gsp_intensity_one_time_step(
7372
gsp=gsp, example_index=example_index, t_index=t_index
7473
)

nowcasting_utils/visualization/data_sources/plot_pv.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def get_traces_pv_intensity(pv: PV, example_index: int):
6464
traces = [go.Choroplethmapbox(colorscale="Viridis")]
6565

6666
for t_index in range(len(time)):
67-
6867
trace = get_trace_pv_intensity_one_time_step(
6968
pv=pv, example_index=example_index, t_index=t_index
7069
)

nowcasting_utils/visualization/line.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def plot_batch_results(
118118
fig.layout.annotations[-1]["yanchor"] = "bottom"
119119

120120
for i in range(0, batchsize):
121-
122121
row = i // N + 1
123122
col = i % N + 1
124123

scripts/plot-satellite.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
# loop over examples
2828
for example_index in range(11, 13):
29-
3029
x = satellite.x[example_index].mean()
3130
y = satellite.y[example_index].mean()
3231

scripts/plot_nwp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252

5353
# loop over examples
5454
for example_index in range(5, 6):
55-
5655
x = nwp.x[example_index].mean()
5756
y = nwp.y[example_index].mean()
5857

0 commit comments

Comments
 (0)