forked from M-Labs/artiq
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):
|
class NoScan(ScanObject):
|
||||||
"""A scan object that yields a single value for a specified number
|
"""A scan object that yields a single value for a specified number
|
||||||
of repetitions."""
|
of repetitions."""
|
||||||
def __init__(self, value, repetitions):
|
def __init__(self, value, repetitions=1):
|
||||||
self.value = value
|
self.value = value
|
||||||
self.repetitions = repetitions
|
self.repetitions = repetitions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue