forked from M-Labs/artiq
1
0
Fork 0

language: set NoScan default repetitions to 1

This commit is contained in:
Sebastien Bourdeauducq 2016-09-08 11:03:55 +08:00
parent 9b937e08f4
commit 7efd990541
1 changed files with 1 additions and 1 deletions

View File

@ -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