Skip to content

Commit 7416f83

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workflow/scripts/powerplants_get_cf_per_shape.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
def _plot_cf_per_shape(cf_file: str, plant_type: str, fig_path: str):
1818
data = pd.read_parquet(cf_file)
1919
if not data.empty:
20-
fig, axes = plt.subplots(len(data.columns), 1, figsize=(10, 1.5*len(data.columns)))
20+
fig, axes = plt.subplots(
21+
len(data.columns), 1, figsize=(10, 1.5 * len(data.columns))
22+
)
2123
for count, shape_id in enumerate(data.columns):
2224
data[shape_id].plot(ax=axes[count])
2325
axes[count].set_title(shape_id)
@@ -81,9 +83,7 @@ def powerplants_get_cf_per_shape(
8183

8284
PowerplantSchema.validate(powerplants)
8385

84-
cap_factors = _get_capacity_factors_timeseries(
85-
plant_type, powerplants, inflow_mwh
86-
)
86+
cap_factors = _get_capacity_factors_timeseries(plant_type, powerplants, inflow_mwh)
8787
cap_factors.to_parquet(output_path)
8888

8989

@@ -98,7 +98,7 @@ def main():
9898
_plot_cf_per_shape(
9999
cf_file=snakemake.output.timeseries,
100100
plant_type=snakemake.wildcards.plant_type,
101-
fig_path=snakemake.output.figure
101+
fig_path=snakemake.output.figure,
102102
)
103103

104104

0 commit comments

Comments
 (0)