build_heat_totals: allow subset of countries

This commit is contained in:
Fabian Neumann 2024-03-14 18:47:09 +01:00
parent 02fc334a2e
commit f74e2f1bb7

View File

@ -16,7 +16,7 @@ idx = pd.IndexSlice
def approximate_heat_demand(energy_totals, hdd): def approximate_heat_demand(energy_totals, hdd):
countries = hdd.columns countries = hdd.columns.intersection(energy_totals.index.levels[0])
demands = {} demands = {}