Skip to content

Commit

Permalink
TST: Updated values for regression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pastewka committed Mar 5, 2024
1 parent f6fa489 commit 16c149d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_robust_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ def test_mad_detrending_topography(file_format_examples, plot=False):
assert t.detrend('mad-curvature').mad_height() < t.detrend('mad-tilt').mad_height()


@pytest.mark.parametrize('fn,ref_mad_height', [['opd-2.opd', 0.013788564614833587],
['plux-1.plux', 1.7007060158749108]])
@pytest.mark.parametrize('fn,ref_mad_height', [['opd-2.opd', 0.013788670136876707],
['plux-1.plux', 1.7007154984245803]])
def test_undefined_data(file_format_examples, fn, ref_mad_height):
file_path = os.path.join(file_format_examples, fn)
t = read_topography(file_path)
assert t.has_undefined_data
print(t.mad_height())
np.testing.assert_allclose(t.mad_height(), ref_mad_height)

0 comments on commit 16c149d

Please sign in to comment.