Skip to content
Snippets Groups Projects
Commit 1d804da3 authored by Sander de Snoo's avatar Sander de Snoo
Browse files

cast numpy.int32 to Python int to avoid overflow for t_measure > 2.1 s

parent 7a12b3f9
No related branches found
No related tags found
No related merge requests found
...@@ -442,6 +442,8 @@ class AcquisitionSequenceBuilder: ...@@ -442,6 +442,8 @@ class AcquisitionSequenceBuilder:
def acquire(self, t_start, t_integrate, n_repeat=1, def acquire(self, t_start, t_integrate, n_repeat=1,
threshold=0, pxi_trigger=None): threshold=0, pxi_trigger=None):
# cast to Python int (not numpy) to avoid numeric overflow for t > 2**31
t_integrate = int(t_integrate)
self._wait_till(t_start) self._wait_till(t_start)
entry = DigitizerSequenceEntry() entry = DigitizerSequenceEntry()
self.sequence.append(entry) self.sequence.append(entry)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment