Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Aug 6, 2024
1 parent cf71b07 commit 6aeee37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions premise/heat.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ def regionalize_heat_production(self):

created_datasets = []

for heat_datasets in self.heat_techs.values():
for heat_tech, heat_datasets in self.heat_techs.items():
datasets = list(
ws.get_many(
self.database,
ws.either(*[ws.contains("name", n) for n in heat_datasets]),
ws.either(*[ws.equals("name", n) for n in heat_datasets]),
ws.equals("unit", "megajoule"),
ws.doesnt_contain_any("location", self.regions),
)
Expand All @@ -155,12 +155,21 @@ def regionalize_heat_production(self):

created_datasets.append(dataset["name"])

print(heat_tech, dataset["name"])
geo_mapping = None
if heat_tech == "heat, from natural gas (market)":
geo_mapping = {
r: "Europe without Switzerland"
for r in self.regions
}

new_ds = self.fetch_proxies(
name=dataset["name"],
ref_prod=dataset["reference product"],
exact_name_match=True,
exact_product_match=True,
subset=datasets,
geo_mapping=geo_mapping,
)

if len(new_ds) == 0:
Expand Down
1 change: 1 addition & 0 deletions premise/iam_variables_mapping/heat_variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ heat, from natural gas (market):
fltr:
- market for heat, central or small-scale, natural gas
- market for heat, district or industrial, natural gas
mask: Jakobsberg

heat, from light fuel oil:
ecoinvent_aliases:
Expand Down

0 comments on commit 6aeee37

Please sign in to comment.