sanitize_locations: avoid attribute error for electricity-only runs (closes #939)
This commit is contained in:
parent
e42ccc2345
commit
cadd33431f
@ -246,7 +246,8 @@ if __name__ == "__main__":
|
||||
attach_hydrogen_pipelines(n, costs, extendable_carriers)
|
||||
|
||||
sanitize_carriers(n, snakemake.config)
|
||||
sanitize_locations(n)
|
||||
if "location" in n.buses:
|
||||
sanitize_locations(n)
|
||||
|
||||
n.meta = dict(snakemake.config, **dict(wildcards=dict(snakemake.wildcards)))
|
||||
n.export_to_netcdf(snakemake.output[0])
|
||||
|
Loading…
Reference in New Issue
Block a user