Browse Source

support python 3.7's new keywords

Ondřej Hruška 1 year ago
parent
commit
d470ff62bb
Signed by: Ondřej Hruška <ondra@ondrovo.com> GPG key ID: 2C5FD5035250423D
1 changed files with 3 additions and 3 deletions
  1. 3 3
      units/ADC.py

+ 3 - 3
units/ADC.py View File

@@ -361,7 +361,7 @@ class ADC(gex.Unit):
361 361
     def capture_in_progress(self):
362 362
         return self._stream_running or self._trig_buf is not None
363 363
 
364
-    def capture(self, count, timeout=None, async=False, lst=None):
364
+    def capture(self, count, timeout=None, asynch=False, lst=None):
365 365
         """
366 366
         Start a block capture.
367 367
         This is similar to a forced trigger, but has custom size and doesn't include any pre-trigger.
@@ -400,7 +400,7 @@ class ADC(gex.Unit):
400 400
 
401 401
             if frame.type == EVT_CAPT_DONE:
402 402
                 self._bcap_done = True
403
-                if async:
403
+                if asynch:
404 404
                     lst(self._parse_buffer(buffer))
405 405
                     self._stream_running = False
406 406
                 return TF.CLOSE
@@ -409,7 +409,7 @@ class ADC(gex.Unit):
409 409
 
410 410
         self._query_async(cmd=CMD_BLOCK_CAPTURE, pld=pb.close(), callback=_lst)
411 411
 
412
-        if not async:
412
+        if not asynch:
413 413
             # wait with a timeout
414 414
             self.client.transport.poll(timeout, lambda: self._bcap_done == True)
415 415