mirror of https://github.com/m-labs/artiq.git
language: set NoScan default repetitions to 1
This commit is contained in:
parent
9b937e08f4
commit
7efd990541
|
@ -38,7 +38,7 @@ class ScanObject:
|
|||
class NoScan(ScanObject):
|
||||
"""A scan object that yields a single value for a specified number
|
||||
of repetitions."""
|
||||
def __init__(self, value, repetitions):
|
||||
def __init__(self, value, repetitions=1):
|
||||
self.value = value
|
||||
self.repetitions = repetitions
|
||||
|
||||
|
|
Loading…
Reference in New Issue