Skip to content

Commit

Permalink
Remove bad test. Cannot gaurantee the value is better or worse in dif…
Browse files Browse the repository at this point in the history
…ferent bands.
  • Loading branch information
jason-neal committed Apr 6, 2019
1 parent 3cd504c commit 858256f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,13 @@ def test_transmission_reduces_precision(test_spec):
)


@pytest.mark.xfail() # Failing randomly...
def test_improved_gradient_reduces_precision(test_spec):
"""Check that the gradient produces larger RV error."""
def test_both_gradients_possible(test_spec):
wav = test_spec[0]
flux = test_spec[1]
transmission = test_spec[2]

a = rv_precision(wav, flux, mask=transmission, grad=False).value
b = rv_precision(wav, flux, mask=transmission, grad=True).value
assert a <= b
assert True


@pytest.mark.parametrize("scale", [0.1, 1, 2, 100, 0.1, 0.5])
Expand Down

0 comments on commit 858256f

Please sign in to comment.