Skip to content

Commit

Permalink
fix: fixed brightway explorer notebook error (wrong key) (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomb authored Sep 12, 2024
1 parent bac3f36 commit bc436c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/notebooks/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def display_main_data(method, impact_category, activity):
name = ", ".join(m[1:])
scores[name] = {
"Indicateur": name,
"Amount": lca.score,
"Score": lca.score,
"Unité": bw2data.methods[m].get("unit", "(no unit)"),
}

Expand All @@ -428,8 +428,8 @@ def display_main_data(method, impact_category, activity):
}
scores["Ecotoxicity, freshwater"] = {
"Indicateur": "Ecotoxicity, freshwater",
"Amount": scores["Ecotoxicity, freshwater - part 1"]["Amount"]
+ scores["Ecotoxicity, freshwater - part 2"]["Amount"],
"Score": scores["Ecotoxicity, freshwater - part 1"]["Score"]
+ scores["Ecotoxicity, freshwater - part 2"]["Score"],
"Unité": scores["Ecotoxicity, freshwater - part 1"]["Unité"],
}
for trigram in [
Expand Down

0 comments on commit bc436c2

Please sign in to comment.