Skip to content

Commit

Permalink
Corrected test_tissue
Browse files Browse the repository at this point in the history
typo in test_tissue
  • Loading branch information
LucyKershaw committed Feb 16, 2024
1 parent 5ce3ba6 commit 7cd756f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified src/.DS_Store
Binary file not shown.
Binary file modified src/osipi/.DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions tests/test_tissue.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ def test_tissue_extended_tofts():
t = np.arange(0, 6 * 60, 1)
ca = osipi.aif_parker(t)
ct_conv = osipi.extended_tofts(t, ca, Ktrans=0, ve=0.2, vp=0.3)
assert math.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)
assert np.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)

ct_exp = osipi.extended_tofts(t, ca, Ktrans=0, ve=0.2, vp=0.3, discretization_method='exp')
assert math.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)
assert np.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)

ct_conv = osipi.extended_tofts(t, ca, Ktrans=0.6, ve=0, vp=0.3)
assert math.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)
assert np.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)

ct_exp = osipi.extended_tofts(t, ca, Ktrans=0.6, ve=0, vp=0.3, discretization_method='exp')
assert math.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)
assert np.allclose(ct_conv,ca*0.3,rtol=1e-4, atol=1e-3)


if __name__ == "__main__":
Expand Down

0 comments on commit 7cd756f

Please sign in to comment.