[skimage] 20/24: Fix: use npz instead of npy format for matlab-output files

Andreas Tille tille at debian.org
Fri Dec 23 08:22:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to tag v0.3.1
in repository skimage.

commit 6ca2c8edcae87e361bdaaccf93a8afc219a96c95
Author: cgohlke <cgohlke at uci.edu>
Date:   Tue Oct 11 17:19:53 2011 -0700

    Fix: use npz instead of npy format for matlab-output files
---
 scikits/image/morphology/tests/test_selem.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/scikits/image/morphology/tests/test_selem.py b/scikits/image/morphology/tests/test_selem.py
index 8ff9318..8f2d8d4 100644
--- a/scikits/image/morphology/tests/test_selem.py
+++ b/scikits/image/morphology/tests/test_selem.py
@@ -28,7 +28,8 @@ class TestSElem():
     def strel_worker(self, fn, func):
         matlab_masks = np.load(os.path.join(data_dir, fn))
         k = 0
-        for expected_mask in matlab_masks:
+        for arrname in sorted(matlab_masks):
+            expected_mask = matlab_masks[arrname]
             actual_mask = func(k)
             if (expected_mask.shape == (1,)):
                 expected_mask = expected_mask[:,np.newaxis]
@@ -36,8 +37,8 @@ class TestSElem():
             k = k + 1
     
     def test_selem_disk(self):
-        self.strel_worker("disk-matlab-output.npy", selem.disk)
+        self.strel_worker("disk-matlab-output.npz", selem.disk)
 
     def test_selem_diamond(self):
-        self.strel_worker("diamond-matlab-output.npy", selem.diamond)
+        self.strel_worker("diamond-matlab-output.npz", selem.diamond)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/skimage.git



More information about the debian-science-commits mailing list