Skip to content

Commit

Permalink
Merge pull request #237 from Stew-McD/add-cas-numbers
Browse files Browse the repository at this point in the history
Add-cas-numbers
  • Loading branch information
cmutel authored Dec 17, 2023
2 parents bacc7f8 + 30684d7 commit 69bc510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bw2io/extractors/ecospold2.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ def extract_exchange(cls, exc):
data["chemical formula"] = exc.get("formula")
if exc.get("mathematicalRelation"):
data["formula"] = exc.get("mathematicalRelation")

if exc.get("casNumber"):
data["CAS number"] = exc.get("casNumber").lstrip("0")

data.update(cls.extract_uncertainty_dict(exc))
return data

0 comments on commit 69bc510

Please sign in to comment.