Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Jan 23, 2024
1 parent 951c644 commit fa4a0c5
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions carculator_utils/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,19 +504,23 @@ def format_data_for_lci_for_simapro(
source = self.references.get(a["name"]).get("source")
comment = self.references.get(a["name"]).get("comment")

main_category = "waste treatment" if any(
i.lower() in a["name"].lower()
for i in (
"waste",
"emissions",
"treatment",
"scrap",
"used powertrain",
"disposal",
"sludge",
"used li-ion",
main_category = (
"waste treatment"
if any(
i.lower() in a["name"].lower()
for i in (
"waste",
"emissions",
"treatment",
"scrap",
"used powertrain",
"disposal",
"sludge",
"used li-ion",
)
)
) else "process"
else "process"
)
category = "carculator"

# We loop through the fields SimaPro expects to see
Expand Down

0 comments on commit fa4a0c5

Please sign in to comment.