simplify: delete columns with incorrect/accurate entries

This commit is contained in:
eb5194 2021-01-20 20:39:22 +01:00
parent df2425d4a0
commit b9fdacad4d

View File

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