示例#1
0
 def test_cumsum_numpy_func(self):
     self.assertQuantityEqual(np.cumsum(self.q, axis=0),
                              [[1, 2], [4, 6]] * self.ureg.m)
示例#2
0
文件: test_numpy.py 项目: wiki01/pint
 def test_cumsum_numpy_func(self):
     helpers.assert_quantity_equal(
         np.cumsum(self.q, axis=0), [[1, 2], [4, 6]] * self.ureg.m
     )