diff --git a/script/scitest/dataset_test.py b/script/scitest/dataset_test.py index c2cd3b2..ab6b758 100644 --- a/script/scitest/dataset_test.py +++ b/script/scitest/dataset_test.py @@ -783,11 +783,11 @@ class Test(unittest.TestCase): s = dr[:2, ..., 1].shape print s self.assertEquals(s, (2, 3, 5)) - """ #### - s = dr[:2, ..., ..., 1].shape + "" + s = dr[:2, :, :, 1].shape print s self.assertEquals(s, (2, 3, 5)) - """ + print "test newaxis" dr = np.arange(15).reshape(3, 5) s = dr[np.newaxis, :, 1:].shape