Exemple #1
0
 def test_round_numpy_func(self):
     self.assertQuantityEqual(
         np.around(1.0275 * self.ureg.m, decimals=2), 1.03 * self.ureg.m
     )
     self.assertQuantityEqual(
         np.round_(1.0275 * self.ureg.m, decimals=2), 1.03 * self.ureg.m
     )
Exemple #2
0
 def test_round_numpy_func(self):
     helpers.assert_quantity_equal(
         np.around(1.0275 * self.ureg.m, decimals=2), 1.03 * self.ureg.m
     )
     helpers.assert_quantity_equal(
         np.round_(1.0275 * self.ureg.m, decimals=2), 1.03 * self.ureg.m
     )