From 7efd9905412cd96db9744abcce06c1233b3b43df Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 8 Sep 2016 11:03:55 +0800 Subject: [PATCH] language: set NoScan default repetitions to 1 --- artiq/language/scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/language/scan.py b/artiq/language/scan.py index cdab4b276..2ba8ef2d4 100644 --- a/artiq/language/scan.py +++ b/artiq/language/scan.py @@ -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