prepare_sector_network: Type of new busmap index and values to str
Otherwise they're read in as integers and the mapping fails.
This commit is contained in:
parent
f0ef0e1136
commit
989495ce79
@ -69,8 +69,12 @@ def update_wind_solar_costs(n,costs):
|
|||||||
#assign clustered bus
|
#assign clustered bus
|
||||||
#map initial network -> simplified network
|
#map initial network -> simplified network
|
||||||
busmap_s = pd.read_csv(snakemake.input.busmap_s, index_col=0).squeeze()
|
busmap_s = pd.read_csv(snakemake.input.busmap_s, index_col=0).squeeze()
|
||||||
|
busmap_s.index = busmap_s.index.astype(str)
|
||||||
|
busmap_s = busmap_s.astype(str)
|
||||||
#map simplified network -> clustered network
|
#map simplified network -> clustered network
|
||||||
busmap = pd.read_csv(snakemake.input.busmap, index_col=0).squeeze()
|
busmap = pd.read_csv(snakemake.input.busmap, index_col=0).squeeze()
|
||||||
|
busmap.index = busmap.index.astype(str)
|
||||||
|
busmap = busmap.astype(str)
|
||||||
#map initial network -> clustered network
|
#map initial network -> clustered network
|
||||||
clustermaps = busmap_s.map(busmap)
|
clustermaps = busmap_s.map(busmap)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user