diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py index 7dafe9f72649c82f82d431bcf8f59fd5c6145e17..7a80013ad674677d4436b9090c6b41e0c89abdfd 100644 --- a/ohmpi/ohmpi.py +++ b/ohmpi/ohmpi.py @@ -526,7 +526,7 @@ class OhmPi(object): delay = kwargs['delay'] else: delay = injection_duration * 2/3 # TODO: check if this is ok and if last point is not taken the end of injection - x = np.where((self._hw.readings[:, 0] >= delay) & (self._hw.readings[:, 2] != 0)) + x = np.where((self._hw.readings[:, 0] >= delay) & (self._hw.readings[:, 2] != 0))[0] Vmn = self._hw.last_vmn(delay=delay) Vmn_std = self._hw.last_vmn_dev(delay=delay) I = self._hw.last_iab(delay=delay)