Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/materials' into materials
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jul 17, 2023
2 parents fdb449a + 7ce27a2 commit 73e66bf
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions premise/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,16 +914,15 @@ def relink_datasets(
]

elif (
exc[0],
exc[1],
"World",
exc[-1],
) in self.modified_datasets[
(self.model, self.scenario, self.year)
][
"created"
]:

exc[0],
exc[1],
"World",
exc[-1],
) in self.modified_datasets[
(self.model, self.scenario, self.year)
][
"created"
]:
self.add_new_entry_to_cache(
location=act["location"],
exchange={
Expand All @@ -945,7 +944,6 @@ def relink_datasets(
break

else:

entry = [exc + (1.0,)]

# summing up the amounts provided by the unwanted exchanges
Expand Down

0 comments on commit 73e66bf

Please sign in to comment.