Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jan 9, 2025
1 parent b18de2f commit 782fabb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions premise/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,12 +1477,18 @@ def export_db_to_simapro(self, olca_compartments=False):
for ds in self.db:
try:
main_category, sub_category = (
dict_cat_simapro[(ds["name"].lower(), ds["reference product"].lower())]["category"],
dict_cat_simapro[(ds["name"].lower(), ds["reference product"].lower())]["sub_category"],
dict_cat_simapro[
(ds["name"].lower(), ds["reference product"].lower())
]["category"],
dict_cat_simapro[
(ds["name"].lower(), ds["reference product"].lower())
]["sub_category"],
)
except KeyError:
main_category, sub_category = ("material", "Others\Transformation")
self.unmatched_category_flows.append((ds["name"], ds["reference product"]))
self.unmatched_category_flows.append(
(ds["name"], ds["reference product"])
)

for item in fields:
if (
Expand Down

0 comments on commit 782fabb

Please sign in to comment.