Skip to content

Commit

Permalink
tests: add pixelation correction test (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed May 5, 2020
1 parent 2764413 commit a6e0953
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_feat_emodulus.py
Expand Up @@ -96,6 +96,14 @@ def test_load_lut_from_badpath():
assert False, "dict should not be supported"


def test_pixelation_correction_volume():
ddelt = emodulus.get_pixelation_delta(feat_corr="deform",
feat_absc="volume",
data_absc=100,
px_um=0.34)
assert np.allclose(ddelt, 0.011464479831134636)


def test_simple_emod():
x = np.linspace(0, 250, 100)
y = np.linspace(0, 0.1, 100)
Expand Down

0 comments on commit a6e0953

Please sign in to comment.