From 68ede979327d30f70289c2fd690920b66114867e Mon Sep 17 00:00:00 2001 From: Andrew Herzing Date: Tue, 16 Jul 2024 09:55:40 -0400 Subject: [PATCH] Changed test for invert method --- tomotools/tests/test_base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tomotools/tests/test_base.py b/tomotools/tests/test_base.py index 8522e05..66332b8 100644 --- a/tomotools/tests/test_base.py +++ b/tomotools/tests/test_base.py @@ -86,8 +86,9 @@ def test_stack_normalize(self): assert norm.data.min() == 0.0 def test_stack_invert(self): - # stack = ds.get_needle_data() - stack = CommonStack(np.random.random([10, 100, 100])) + im = np.zeros([10,100,100]) + im[:,40:60,40:60] = 10 + stack = CommonStack(im) invert = stack.invert() hist, bins = np.histogram(stack.data) hist_inv, bins_inv = np.histogram(invert.data)