Skip to content

Commit

Permalink
turn the formula in lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomb committed Nov 18, 2024
1 parent 3d3d9de commit 497bca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
22 changes: 1 addition & 21 deletions bw2io/data/simapro-biosphere.json
Original file line number Diff line number Diff line change
Expand Up @@ -1224,26 +1224,6 @@
"Transformation, from forest",
"Transformation, from forest, unspecified"
],
[
"natural resource",
"Transformation, from forest, intensive, clear-cutting",
"Transformation, from forest, intensive"
],
[
"natural resource",
"Transformation, from forest, intensive, normal",
"Transformation, from forest, intensive"
],
[
"natural resource",
"Transformation, from forest, intensive, short-cycle",
"Transformation, from forest, intensive"
],
[
"natural resource",
"Transformation, from forest, primary",
"Transformation, from forest, primary (non-use)"
],
[
"natural resource",
"Transformation, from grassland, not used",
Expand Down Expand Up @@ -2734,4 +2714,4 @@
"Zinc",
"Zinc, ion"
]
]
]
3 changes: 3 additions & 0 deletions bw2io/strategies/simapro.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def sp_allocate_products(db):
ds["parameters"] = {
k.lower(): v for k, v in ds["parameters"].items()
}
for k in ds["parameters"].keys():
if "formula" in ds["parameters"][k]:
ds["parameters"][k]["formula"] = ds["parameters"][k]["formula"].lower()
interp = bw2parameters.ParameterSet(
ds["parameters"]
).get_interpreter()
Expand Down

0 comments on commit 497bca9

Please sign in to comment.