Merge pull request #219 from PyPSA/substation_lv_bug

simplify: delete bus columns with incorrect entries
This commit is contained in:
Martha Frysztacki [frɨʂtat͡skʲ] 2021-07-01 10:04:58 +02:00 committed by GitHub
commit a82b3e853c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,7 +363,9 @@ if __name__ == "__main__":
if snakemake.wildcards.simpl:
n, cluster_map = cluster(n, int(snakemake.wildcards.simpl))
busmaps.append(cluster_map)
else:
n.buses = n.buses.drop(['symbol', 'tags', 'under_construction', 'substation_lv', 'substation_off'], axis=1)
n.export_to_netcdf(snakemake.output.network)
busmap_s = reduce(lambda x, y: x.map(y), busmaps[1:], busmaps[0])