Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pathways' into pathways
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi authored and romainsacchi committed Aug 12, 2024
2 parents 1c88c22 + f715012 commit ae9e6a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified premise/data/metals/activities_mapping.xlsx
Binary file not shown.
6 changes: 5 additions & 1 deletion premise/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ def redefine_uncertainty_params(old_exc, new_exc):

elif old_exc.get("uncertainty type") == 2:
return (
math.log(new_exc["amount"] * -1) if new_exc["amount"] < 0 else math.log(new_exc["amount"]),
(
math.log(new_exc["amount"] * -1)
if new_exc["amount"] < 0
else math.log(new_exc["amount"])
),
old_exc.get("scale"),
None,
None,
Expand Down
2 changes: 0 additions & 2 deletions premise/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ def check_uncertainty(self):
if exc.get("uncertainty type", 0) == 5 and "loc" not in exc:
exc["loc"] = exc["amount"]



def check_datasets_integrity(self):
# Verify no unintended loss of datasets
original_activities = [
Expand Down

0 comments on commit ae9e6a4

Please sign in to comment.