Skip to content

Commit

Permalink
relax test tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-j authored Sep 17, 2024
1 parent bc21b9c commit ce13402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/protein/tensor/test_angles.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_dihedrals_to_rad():
delta[delta.nonzero()] = torch.abs(delta[torch.nonzero(delta)] - 2 * np.pi)

delta = ((delta + 2 * np.pi) / np.pi) % 2
np.testing.assert_allclose(delta, torch.zeros_like(delta), atol=1e-5)
np.testing.assert_allclose(delta, torch.zeros_like(delta), atol=1e-4, rtol=1e-4)


@pytest.mark.skipif(not TORCH_AVAIL, reason="PyTorch not available")
Expand Down

0 comments on commit ce13402

Please sign in to comment.