Skip to content

Commit

Permalink
Changed test for invert method
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewHerzing committed Jul 16, 2024
1 parent 3b2c2f3 commit 68ede97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tomotools/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 68ede97

Please sign in to comment.