Skip to content

Commit

Permalink
test matplotlib plot only
Browse files Browse the repository at this point in the history
  • Loading branch information
ncullen93 committed Feb 21, 2024
1 parent 275677c commit f5a45f4
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/test_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,5 @@ def test_plot_example(self):
ants.plot(img, filename=filename)


class TestModule_create_tiled_mosaic(unittest.TestCase):

def setUp(self):
img2d = ants.image_read(ants.get_ants_data('r16'))
img3d = ants.image_read(ants.get_ants_data('mni'))
self.imgs = [img2d, img3d]

def tearDown(self):
pass

def test_example(self):
img = ants.image_read(ants.get_ants_data('ch2')).resample_image((3,3,3))

# test with output
outfile = mktemp(suffix='.png')
p = ants.create_tiled_mosaic(img, output=outfile)

# rgb is not none
rgb = img.clone()
p = ants.create_tiled_mosaic(img, rgb=rgb, output=outfile)

if __name__ == '__main__':
run_tests()

0 comments on commit f5a45f4

Please sign in to comment.