From e93880b7417777ebbfbc0f41fd450a63f340228f Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Thu, 9 Feb 2023 15:05:27 +0100 Subject: [PATCH] #16 Removed pytest warning --- src/test/test_morphology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/test_morphology.py b/src/test/test_morphology.py index a608d0d..d99ccae 100644 --- a/src/test/test_morphology.py +++ b/src/test/test_morphology.py @@ -49,11 +49,11 @@ def test_morphology(r, m, op, nd): assert np.allclose(verification, result) - return fend - fsta, (vend - vsta) / (fend - fsta) + print (f'Testing the {m.__name__} implementation of {op}. Ran in {fend - fsta}, which is {(vend - vsta) / (fend - fsta)} times better than ndi') if __name__ == '__main__': # TDOO move the data generation and ndi verification out to speed up running for r in rs: for m in impls: for op, nd in funcs: - print (f'Testing the {m.__name__} implementation of {op}', test_morphology(r, m, op, nd)) + test_morphology(r, m, op, nd)