From cd3b590962ca0ee07d1201cb736f783e738fb124 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 11 Oct 2015 10:05:27 +0800 Subject: [PATCH] language/scan: add missing attributes to RandomScan Reported by Joe --- artiq/language/scan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/language/scan.py b/artiq/language/scan.py index dabd49af8..a5ffa27d6 100644 --- a/artiq/language/scan.py +++ b/artiq/language/scan.py @@ -79,6 +79,9 @@ class RandomScan(ScanObject): """A scan object that yields a fixed number of randomly ordered evenly spaced values in a range.""" def __init__(self, min, max, npoints, seed=0): + self.min = min + self.max = max + self.npoints = npoints self.sequence = list(LinearScan(min, max, npoints)) shuffle(self.sequence, Random(seed).random)