Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Nov 29, 2024
2 parents 0fcea2a + a636c55 commit 1e82f13
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 1e82f13

Please sign in to comment.