mirror of https://github.com/m-labs/artiq.git
examples/arguments_demo: demonstrate arguments from datasets (#368)
This commit is contained in:
parent
b095c94919
commit
f9db7e472b
|
@ -37,7 +37,10 @@ class SubComponent2(HasEnvironment):
|
|||
|
||||
class ArgumentsDemo(EnvExperiment):
|
||||
def build(self):
|
||||
self.setattr_argument("pyon_value", PYONValue(None))
|
||||
# change the "foo" dataset and click the "recompute argument"
|
||||
# buttons.
|
||||
self.setattr_argument("pyon_value",
|
||||
PYONValue(self.get_dataset("foo", default=42)))
|
||||
self.setattr_argument("number", NumberValue(42e-6,
|
||||
unit="us", scale=1e-6,
|
||||
ndecimals=4))
|
||||
|
|
Loading…
Reference in New Issue