build_district_heat_share: make safe for single-country runs

This commit is contained in:
Fabian Neumann 2024-01-22 10:10:40 +01:00
parent 757fbcc464
commit fd57311094

View File

@ -31,7 +31,7 @@ if __name__ == "__main__":
district_heat_share = pd.read_csv(
snakemake.input.district_heat_share, index_col=0
).squeeze()
)["district heat share"]
# make ct-based share nodal
district_heat_share = district_heat_share.loc[pop_layout.ct]