forked from M-Labs/artiq
language: set NoScan default repetitions to 1
This commit is contained in:
parent
d4af4414e7
commit
736927b6da
|
@ -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