Skip to content

Commit

Permalink
language: scan functions are not supported on core device.
Browse files Browse the repository at this point in the history
Closes #1009.
  • Loading branch information
whitequark committed May 22, 2018
1 parent dfb4a43 commit 7aacc04
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions artiq/language/scan.py
Expand Up @@ -42,12 +42,10 @@ def __init__(self, value, repetitions=1):
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()

Expand Down Expand Up @@ -81,7 +79,6 @@ def __init__(self, start, stop, npoints, randomize=False, seed=None):
rng = random.Random(seed)
random.shuffle(self.sequence, rng.random)

@portable
def __iter__(self):
return iter(self.sequence)

Expand All @@ -101,7 +98,6 @@ class ExplicitScan(ScanObject):
def __init__(self, sequence):
self.sequence = sequence

@portable
def __iter__(self):
return iter(self.sequence)

Expand Down

0 comments on commit 7aacc04

Please sign in to comment.