Exemplo n.º 1
0
 def test_std_numpy_func(self):
     self.assertQuantityAlmostEqual(np.std(self.q),
                                    1.11803 * self.ureg.m,
                                    rtol=1e-5)
     self.assertRaises(OffsetUnitCalculusError, np.std, self.q_temperature)
Exemplo n.º 2
0
 def test_std_numpy_func(self):
     helpers.assert_quantity_almost_equal(
         np.std(self.q), 1.11803 * self.ureg.m, rtol=1e-5
     )
     with pytest.raises(OffsetUnitCalculusError):
         np.std(self.q_temperature)