2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

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

View File

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