diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py index ae66f806a3a917baf18454fdbc388f3ae02a2de0..9e9712aa5e9b8d9507ef456aefa5ff93932cac90 100644 --- a/ohmpi/ohmpi.py +++ b/ohmpi/ohmpi.py @@ -459,8 +459,8 @@ class OhmPi(object): else: delay = 0. x = np.where((self._hw.readings[:, 0] >= delay) & (self._hw.readings[:, 2] != 0)) - R = np.mean(self._hw.readings[x, 2]*self._hw.readings[x, 4])/np.median(self._hw.readings[x, 3]) - R_std = 100. * np.std(self._hw.readings[x, 2] * (self._hw.readings[x, 4] - self._hw.sp) / self._hw.readings[x, 3]) / R + R = np.mean((self._hw.readings[x, 2] * self._hw.readings[x, 4] - self._hw.sp) / self._hw.readings[x, 3]) + R_std = 100. * np.std((self._hw.readings[x, 2] * self._hw.readings[x, 4] - self._hw.sp) / self._hw.readings[x, 3]) / R d = { "time": datetime.now().isoformat(), "A": quad[0],