17
17
def _plot_cf_per_shape (cf_file : str , plant_type : str , fig_path : str ):
18
18
data = pd .read_parquet (cf_file )
19
19
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
+ )
21
23
for count , shape_id in enumerate (data .columns ):
22
24
data [shape_id ].plot (ax = axes [count ])
23
25
axes [count ].set_title (shape_id )
@@ -81,9 +83,7 @@ def powerplants_get_cf_per_shape(
81
83
82
84
PowerplantSchema .validate (powerplants )
83
85
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 )
87
87
cap_factors .to_parquet (output_path )
88
88
89
89
@@ -98,7 +98,7 @@ def main():
98
98
_plot_cf_per_shape (
99
99
cf_file = snakemake .output .timeseries ,
100
100
plant_type = snakemake .wildcards .plant_type ,
101
- fig_path = snakemake .output .figure
101
+ fig_path = snakemake .output .figure ,
102
102
)
103
103
104
104
0 commit comments