Пример #1
0
 def test_mean_numpy_func(self):
     self.assertEqual(np.mean(self.q), 2.5 * self.ureg.m)
     self.assertEqual(np.mean(self.q_temperature),
                      self.Q_(2.5, self.ureg.degC))
Пример #2
0
 def test_mean_numpy_func(self):
     assert np.mean(self.q) == 2.5 * self.ureg.m
     assert np.mean(self.q_temperature) == self.Q_(2.5, self.ureg.degC)