Skip to content

Commit

Permalink
fix problem where activities with same name but different product had…
Browse files Browse the repository at this point in the history
… to be regionalized
  • Loading branch information
marc-vdm committed Nov 29, 2024
1 parent b63e393 commit 1c58e2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions premise/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,9 @@ def regionalize_inventories(self, ds_names, regions, data: dict) -> None:
if "regionalize" in ds:
del ds["regionalize"]

if ds["location"] not in regions and ds["name"] not in processed:
processed.append(ds["name"])
processed_key = (ds["name"], ds["reference product"], ds["unit"])
if ds["location"] not in regions and processed_key not in processed:
processed.append(processed_key)

# Check if datasets already exist for IAM regions
# if not, create them
Expand Down

0 comments on commit 1c58e2e

Please sign in to comment.