Skip to content

Commit

Permalink
fix for constraint calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHelfer committed Dec 29, 2023
1 parent 1a96192 commit ef8c402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_Constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_Constraints():
chris = compute_christoffel(d1["h"], h_UU)
out = constraint_equations(vars, d1, d2, h_UU, chris)

assert (f"{torch.mean(torch.abs(out['Ham']-vars['Ham']))}") < tol
assert (torch.mean(torch.abs(out["Ham"] - vars["Ham"]))) < tol


if __name__ == "__main__":
Expand Down

0 comments on commit ef8c402

Please sign in to comment.