Skip to content

Commit

Permalink
Fix water unit conversion when exporting to Simapro
Browse files Browse the repository at this point in the history
Version bump
  • Loading branch information
romainsacchi authored and romainsacchi committed May 14, 2024
1 parent 7d0ccd6 commit 074592b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion premise/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__all__ = ("NewDatabase", "clear_cache", "get_regions_definition")
__version__ = (2, 1, 0, "dev7")
__version__ = (2, 1, 0, "dev8")


from premise.new_database import NewDatabase
Expand Down
3 changes: 2 additions & 1 deletion premise/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,8 @@ def export_db_to_simapro(self, olca_compartments=False):

if e["name"].lower() == "water":
e["unit"] = "kilogram"
e["amount"] /= 1000
# going from cubic meters to kilograms
e["amount"] *= 1000

if e["name"] not in dict_bio:
unlinked_biosphere_flows.append(
Expand Down

0 comments on commit 074592b

Please sign in to comment.