From 02f6727fa27480a6f7a22cb66327bb73a7c0fb33 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 22 May 2018 21:33:35 +0000 Subject: [PATCH] language: scan functions are not supported on core device. Closes #1009. --- artiq/language/scan.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/artiq/language/scan.py b/artiq/language/scan.py index 8c38ce63c..3df898ad0 100644 --- a/artiq/language/scan.py +++ b/artiq/language/scan.py @@ -42,12 +42,10 @@ class NoScan(ScanObject): self.value = value self.repetitions = repetitions - @portable def _gen(self): for i in range(self.repetitions): yield self.value - @portable def __iter__(self): return self._gen() @@ -81,7 +79,6 @@ class RangeScan(ScanObject): rng = random.Random(seed) random.shuffle(self.sequence, rng.random) - @portable def __iter__(self): return iter(self.sequence) @@ -101,7 +98,6 @@ class ExplicitScan(ScanObject): def __init__(self, sequence): self.sequence = sequence - @portable def __iter__(self): return iter(self.sequence)