Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi authored and romainsacchi committed Nov 27, 2024
1 parent e6fb6fa commit 39c2067
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_reproducing_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ def test_db_reproduction():
lca = bw2calc.LCA({bw2data.get_activity(("db A", "activity A")): 1})
lca.lci()
new_supply_A = lca.supply_array
assert np.allclose(original_supply_A, new_supply_A) == True
# test that sums are close
assert np.allclose(original_supply_A.sum(), new_supply_A.sum()) == True

lca = bw2calc.LCA({bw2data.get_activity(("db B", "activity A")): 1})
lca.lci()
new_supply_B = lca.supply_array
assert np.allclose(original_supply_B, new_supply_B) == True
# test that sums are close
assert np.allclose(original_supply_B.sum(), new_supply_B.sum()) == True

0 comments on commit 39c2067

Please sign in to comment.