Commit a1193c2d authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

counter: fixed end-less acquisition for integrating counters

parent 29ac2724
...@@ -279,7 +279,9 @@ class IntegratingCounterAcquisitionDevice(BaseCounterAcquisitionDevice): ...@@ -279,7 +279,9 @@ class IntegratingCounterAcquisitionDevice(BaseCounterAcquisitionDevice):
def reading(self): def reading(self):
from_index = 0 from_index = 0
while self._nb_acq_points < self.npoints and not self._stop_flag: while (
not self.npoints or self._nb_acq_points < self.npoints
) and not self._stop_flag:
data = self._read_data(from_index) data = self._read_data(from_index)
if not all_equal([len(d) for d in data]): if not all_equal([len(d) for d in data]):
raise RuntimeError("Read data can't have different sizes") raise RuntimeError("Read data can't have different sizes")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment