forked from M-Labs/artiq
gui: fix default LinearScan/RandomScan
This commit is contained in:
parent
5b62b2452d
commit
928775f6ac
|
@ -102,10 +102,10 @@ class ScanController(LayoutWidget):
|
||||||
force_spinbox_value(self.v_noscan, d["value"])
|
force_spinbox_value(self.v_noscan, d["value"])
|
||||||
elif d["ty"] == "LinearScan":
|
elif d["ty"] == "LinearScan":
|
||||||
self.linear.setChecked(True)
|
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":
|
elif d["ty"] == "RandomScan":
|
||||||
self.random.setChecked(True)
|
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":
|
elif d["ty"] == "ExplicitScan":
|
||||||
self.explicit.setChecked(True)
|
self.explicit.setChecked(True)
|
||||||
self.v_explicit.insert(" ".join(
|
self.v_explicit.insert(" ".join(
|
||||||
|
|
Loading…
Reference in New Issue