@@ -171,24 +171,23 @@ def write_to_scenario_yaml(input, output, scenarios, df):
171171 aviation_demand_factor .loc [year ].item (), 4
172172 )
173173
174- if not snakemake .params .db_name == "ariadne" :
175- st_primary_fraction = get_primary_steel_share (
176- df .loc [:, reference_scenario , :], planning_horizons
177- )
174+ st_primary_fraction = get_primary_steel_share (
175+ df .loc [:, reference_scenario , :], planning_horizons
176+ )
178177
179- dri_fraction = get_DRI_share (
180- df .loc [:, reference_scenario , :], planning_horizons
181- )
178+ dri_fraction = get_DRI_share (
179+ df .loc [:, reference_scenario , :], planning_horizons
180+ )
182181
183- config [scenario ]["industry" ]["St_primary_fraction" ] = {}
184- config [scenario ]["industry" ]["DRI_fraction" ] = {}
185- for year in st_primary_fraction .columns :
186- config [scenario ]["industry" ]["St_primary_fraction" ][year ] = round (
187- st_primary_fraction .loc ["Primary_Steel_Share" , year ].item (), 4
188- )
189- config [scenario ]["industry" ]["DRI_fraction" ][year ] = round (
190- dri_fraction .loc ["DRI_Steel_Share" , year ].item (), 4
191- )
182+ config [scenario ]["industry" ]["St_primary_fraction" ] = {}
183+ config [scenario ]["industry" ]["DRI_fraction" ] = {}
184+ for year in st_primary_fraction .columns :
185+ config [scenario ]["industry" ]["St_primary_fraction" ][year ] = round (
186+ st_primary_fraction .loc ["Primary_Steel_Share" , year ].item (), 4
187+ )
188+ config [scenario ]["industry" ]["DRI_fraction" ][year ] = round (
189+ dri_fraction .loc ["DRI_Steel_Share" , year ].item (), 4
190+ )
192191
193192 config [scenario ]["solving" ]["constraints" ]["co2_budget_national" ] = {}
194193 for year , target in co2_budget_fractions .items ():
0 commit comments