From 928775f6ac2daaca8e39feb07d46aa1c0370091d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 25 Jul 2015 00:35:21 +0800 Subject: [PATCH] gui: fix default LinearScan/RandomScan --- artiq/gui/scan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gui/scan.py b/artiq/gui/scan.py index 2edafa579..8c319a925 100644 --- a/artiq/gui/scan.py +++ b/artiq/gui/scan.py @@ -102,10 +102,10 @@ class ScanController(LayoutWidget): force_spinbox_value(self.v_noscan, d["value"]) elif d["ty"] == "LinearScan": self.linear.setChecked(True) - self.v_linear.set_values(d["min"], d["max"], d["step"]) + self.v_linear.set_values(d["min"], d["max"], d["npoints"]) elif d["ty"] == "RandomScan": self.random.setChecked(True) - self.v_random.set_values(d["min"], d["max"], d["step"]) + self.v_random.set_values(d["min"], d["max"], d["npoints"]) elif d["ty"] == "ExplicitScan": self.explicit.setChecked(True) self.v_explicit.insert(" ".join(