diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 6289768fa5364bf06e552c85cacfaee95bdfef4b..af4823a8758f902efb4255ed232bb461559ee737 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -174,9 +174,10 @@ class OhmPiHardware: sample += 1 sleep_time = self._start_time + datetime.timedelta(seconds=sample / sampling_rate) - lap if sleep_time.total_seconds() < 0.: - for i in range(int(sampling_rate * np.abs(sleep_time.total_seconds()))): - _readings.append([elapsed_seconds(self._start_time), self._pulse, self.tx.polarity, np.nan, np.nan]) - sample += 1 + # for i in range(int(sampling_rate * np.abs(sleep_time.total_seconds()))): + # _readings.append([elapsed_seconds(self._start_time), self._pulse, self.tx.polarity, np.nan, np.nan]) + # sample += 1 + sample += int(sampling_rate * np.abs(sleep_time.total_seconds())) else: time.sleep(np.max([0., sleep_time.total_seconds()]))