Exemple #1
0
 def test_fabs(self):
     self.assertQuantityEqual(np.fabs(self.q - 2 * self.ureg.m),
                              self.Q_([[1, 0], [1, 2]], "m"))
Exemple #2
0
 def test_fabs(self):
     helpers.assert_quantity_equal(
         np.fabs(self.q - 2 * self.ureg.m), self.Q_([[1, 0], [1, 2]], "m")
     )