cleanup and renaming

This commit is contained in:
LukasFrankenQ 2023-09-05 14:31:45 +01:00
parent 77b72dcbc3
commit d7afa661a8

View File

@ -3280,7 +3280,7 @@ def set_temporal_aggregation(n, opts, solver_name):
return n return n
def add_egs_potential( def add_enhanced_geothermal(
n, n,
egs_potentials, egs_potentials,
egs_overlap, egs_overlap,
@ -3568,20 +3568,17 @@ if __name__ == "__main__":
if options.get("enhanced_geothermal"): if options.get("enhanced_geothermal"):
logger.info("Adding Enhanced Geothermal Potential.") logger.info("Adding Enhanced Geothermal Potential.")
add_egs_potential( """
add_enhanced_geothermal(
n, n,
snakemake.input["egs_potentials"], snakemake.input["egs_potentials"],
snakemake.input["egs_overlap"], snakemake.input["egs_overlap"],
costs costs
) )
"""
n.meta = dict(snakemake.config, **dict(wildcards=dict(snakemake.wildcards))) n.meta = dict(snakemake.config, **dict(wildcards=dict(snakemake.wildcards)))
sanitize_carriers(n, snakemake.config) sanitize_carriers(n, snakemake.config)
n.buses.to_csv("buses.csv")
n.generators.to_csv("generators.csv")
n.links.to_csv("links.csv")
n.export_to_netcdf(snakemake.output[0]) n.export_to_netcdf(snakemake.output[0])