Example #1
0
 def test_insert(self):
     self.assertQuantityEqual(
         np.insert(self.q, 1, 0 * self.ureg.m, axis=1),
         np.array([[1, 0, 2], [3, 0, 4]]) * self.ureg.m,
     )
Example #2
0
 def test_insert(self):
     helpers.assert_quantity_equal(
         np.insert(self.q, 1, 0 * self.ureg.m, axis=1),
         np.array([[1, 0, 2], [3, 0, 4]]) * self.ureg.m,
     )