Exemple #1
0
 def test_cumsum_numpy_func(self):
     self.assertQuantityEqual(np.cumsum(self.q, axis=0),
                              [[1, 2], [4, 6]] * self.ureg.m)
Exemple #2
0
 def test_cumsum_numpy_func(self):
     helpers.assert_quantity_equal(
         np.cumsum(self.q, axis=0), [[1, 2], [4, 6]] * self.ureg.m
     )