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
dfc6ecbf3d
commit
15ed584dc3
@ -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
Block a user