Re-enable imagej tests
import os
import sys
-
+import porespy as ps
class ImageJTest:
def setup_class(self):
self.path = os.path.dirname(os.path.abspath(sys.argv[0]))
- # def test_imagej_wrapper(self):
- # img = ps.generators.blobs(shape=[50, 50, 50], porosity=.5, blobiness=2)
- # plgn = ps.imagej.imagej_wrapper(img, 'mean', 'sc.fiji:fiji:2.1.1')
- # assert sum(plgn.shape) == 150
+ def test_imagej_wrapper(self):
+ img = ps.generators.blobs(shape=[50, 50, 50], porosity=.5, blobiness=2)
+ plgn = ps.imagej.imagej_wrapper(img, 'mean', 'sc.fiji:fiji:2.1.1')
+ assert sum(plgn.shape) == 150
- # def test_imagej_plugin(self):
- # img = ps.generators.blobs(shape=[50, 50, 50], porosity=.5, blobiness=2)
- # test = ps.imagej.imagej_plugin(img, path='sc.fiji:fiji:2.1.1',
- # plugin_name='Mean 3D...',
- # args={'options' : 'True'})
- # assert sum(test.shape) == 150
+ def test_imagej_plugin(self):
+ img = ps.generators.blobs(shape=[50, 50, 50], porosity=.5, blobiness=2)
+ test = ps.imagej.imagej_plugin(img, path='sc.fiji:fiji:2.1.1',
+ plugin_name='Mean 3D...',
+ args={'options' : 'True'})
+ assert sum(test.shape) == 150
if __name__ == "__main__":
