Skip to content

Commit

Permalink
Fix issue with undue delete tag on biosphere exchanges
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Oct 8, 2024
1 parent 40563d3 commit 71edaf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions premise/inventory_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ def add_biosphere_links(self) -> None:
print(
f"Could not find a biosphere flow for {key} in {self.path.name}. You need to fix this."
)
# remove the exchange if it is not linked
y["delete"] = True
# remove the exchange if it is not linked
y["delete"] = True

x["exchanges"] = [y for y in x["exchanges"] if "delete" not in y]

Expand Down

0 comments on commit 71edaf6

Please sign in to comment.