Skip to content

Commit

Permalink
FIX remove redundant previous tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eickenberg committed Oct 5, 2023
1 parent 4f58a58 commit 3103091
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_1d/test_forward_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ def test_1d_t1_forward_CPU(values: torch.Tensor) -> None:
assert finufft1D1_out.dtype is torch.complex128

assert against_torch.dtype == values.dtype
assert (
torch.linalg.norm(finufft1D1_out - against_torch) / N**2
) == pytest.approx(0, abs=1e-06)
assert (
torch.linalg.norm(finufft1D1_out - against_scipy) / N**2
) == pytest.approx(0, abs=1e-06)


abs_errors = torch.abs(finufft1D1_out - against_torch)
l_inf_error = abs_errors.max()
Expand Down Expand Up @@ -98,13 +91,6 @@ def test_1d_t2_forward_CPU(targets: torch.Tensor):
/ N
)

assert torch.norm(finufft_out - np.array(targets)) / N**2 == pytest.approx(
0, abs=1e-05
)
assert torch.norm(finufft_out - against_torch) / N**2 == pytest.approx(
0, abs=1e-05
)

abs_errors = torch.abs(finufft_out - against_torch)
l_inf_error = abs_errors.max()
l_2_error = torch.sqrt(torch.sum(abs_errors**2))
Expand Down

0 comments on commit 3103091

Please sign in to comment.