You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the open data of Ariadne1, build_scenarios throws an error in get_DRI_share as the variable Production|Steel|Primary|Direct Reduction Hydrogen does not exist within the public database. Weirdly, handling the error using try and except clauses did not work. An if-else clause would be required instead. Therefore, it might make sense to also replace the other try-except statements in the script.
Error Message
KeyError: 'Production|Steel|Primary|Direct Reduction Hydrogen'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/scratch/htc/cschauss/pypsa-ariadne/.snakemake/scripts/tmppkkd_cud.build_scenarios.py", line 251, in <module>
write_to_scenario_yaml(input, output, scenarios, df)
File "/scratch/htc/cschauss/pypsa-ariadne/.snakemake/scripts/tmppkkd_cud.build_scenarios.py", line 200, in write_to_scenario_yaml
dri_fraction = get_DRI_share(
^^^^^^^^^^^^^^
File "/scratch/htc/cschauss/pypsa-ariadne/.snakemake/scripts/tmppkkd_cud.build_scenarios.py", line 63, in get_DRI_share
DRI_steel = df.loc[model, "Production|Steel|Primary|Direct Reduction Hydrogen"]
The text was updated successfully, but these errors were encountered:
Using the open data of Ariadne1,
build_scenarios
throws an error inget_DRI_share
as the variableProduction|Steel|Primary|Direct Reduction Hydrogen
does not exist within the public database. Weirdly, handling the error using try and except clauses did not work. An if-else clause would be required instead. Therefore, it might make sense to also replace the other try-except statements in the script.Error Message
The text was updated successfully, but these errors were encountered: