forked from M-Labs/artiq
Bugfix: Add missing item inside state to solve KeyError
KeyError raised when trying to load default_state() due to missing Key "seed" in "RangeScan" and "CenterScan" in state. Add {"seed": None} to resolve the bug.
This commit is contained in:
parent
83af3b756d
commit
20dc923c9e
|
@ -427,9 +427,10 @@ class ScanEntry(LayoutWidget):
|
||||||
"selected": "NoScan",
|
"selected": "NoScan",
|
||||||
"NoScan": {"value": 0.0, "repetitions": 1},
|
"NoScan": {"value": 0.0, "repetitions": 1},
|
||||||
"RangeScan": {"start": 0.0, "stop": 100.0*scale, "npoints": 10,
|
"RangeScan": {"start": 0.0, "stop": 100.0*scale, "npoints": 10,
|
||||||
"randomize": False},
|
"randomize": False, "seed": None},
|
||||||
"CenterScan": {"center": 0.*scale, "span": 100.*scale,
|
"CenterScan": {"center": 0.*scale, "span": 100.*scale,
|
||||||
"step": 10.*scale, "randomize": False},
|
"step": 10.*scale, "randomize": False,
|
||||||
|
"seed": None},
|
||||||
"ExplicitScan": {"sequence": []}
|
"ExplicitScan": {"sequence": []}
|
||||||
}
|
}
|
||||||
if "default" in procdesc:
|
if "default" in procdesc:
|
||||||
|
|
Loading…
Reference in New Issue