build_district_heat_share: make safe for single-country runs
This commit is contained in:
parent
757fbcc464
commit
fd57311094
@ -31,7 +31,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
district_heat_share = pd.read_csv(
|
district_heat_share = pd.read_csv(
|
||||||
snakemake.input.district_heat_share, index_col=0
|
snakemake.input.district_heat_share, index_col=0
|
||||||
).squeeze()
|
)["district heat share"]
|
||||||
|
|
||||||
# make ct-based share nodal
|
# make ct-based share nodal
|
||||||
district_heat_share = district_heat_share.loc[pop_layout.ct]
|
district_heat_share = district_heat_share.loc[pop_layout.ct]
|
||||||
|
Loading…
Reference in New Issue
Block a user