示例#1
0
 def test_numpy_array(self):
     array = NewAxesArray(np.arange(24), [1, 2])
     self.assertIsInstance(array.ndarray(), np.ndarray)
     assert_array_equal(array.masked_array(),
                        np.arange(24).reshape(1, 24, 1, 1))
示例#2
0
 def test_numpy_array(self):
     array = NewAxesArray(np.arange(24), [1, 2])
     self.assertIsInstance(array.ndarray(), np.ndarray)
     assert_array_equal(array.masked_array(),
                        np.arange(24).reshape(1, 24, 1, 1))