28391c732febce05b9614e21237eb5a3e9c3be9c,tests/test_utils.py,TestModule_get_neighborhood,test_get_neighborhood_in_mask_example,#TestModule_get_neighborhood#,322

Before Change



    def test_get_neighborhood_in_mask_example(self):
        img = ants.image_read(ants.get_ants_data("r16"))
        mask = img > img.mean()
        mat = ants.get_neighborhood_in_mask(img, mask, radius=(2,2))

        // image not ANTsImage
        with self.assertRaises(Exception):

After Change



    def test_get_neighborhood_in_mask_example(self):
        img = ants.image_read(ants.get_ants_data("r16"))
        mask = ants.get_mask(img)
        mat = ants.get_neighborhood_in_mask(img, mask, radius=(2,2))

        // image not ANTsImage
        with self.assertRaises(Exception):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ANTsX/ANTsPy
Commit Name: 28391c732febce05b9614e21237eb5a3e9c3be9c
Time: 2018-06-04
Author: stnava@gmail.com
File Name: tests/test_utils.py
Class Name: TestModule_get_neighborhood
Method Name: test_get_neighborhood_in_mask_example


Project Name: ANTsX/ANTsPy
Commit Name: 28391c732febce05b9614e21237eb5a3e9c3be9c
Time: 2018-06-04
Author: stnava@gmail.com
File Name: tests/test_utils.py
Class Name: TestModule_morphology
Method Name: test_morphology


Project Name: ANTsX/ANTsPy
Commit Name: 28391c732febce05b9614e21237eb5a3e9c3be9c
Time: 2018-06-04
Author: stnava@gmail.com
File Name: tests/test_utils.py
Class Name: TestModule_mask_image
Method Name: test_mask_image_example


Project Name: ANTsX/ANTsPy
Commit Name: 28391c732febce05b9614e21237eb5a3e9c3be9c
Time: 2018-06-04
Author: stnava@gmail.com
File Name: tests/test_utils.py
Class Name: TestModule_labels_to_matrix
Method Name: test_labels_to_matrix_example