mirror of https://github.com/m-labs/artiq.git
examples/flopping_f_simulation: use scheduler API
This commit is contained in:
parent
d01ba8e644
commit
cca6a17cfb
|
@ -53,6 +53,14 @@ class FloppingF(AutoDB):
|
||||||
self.brightness.append(brightness)
|
self.brightness.append(brightness)
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
run_params = {
|
||||||
|
"file": "flopping_f_simulation.py",
|
||||||
|
"unit": None,
|
||||||
|
"arguments": dict(),
|
||||||
|
"rtr_group": "flopping_f_simulation.py"
|
||||||
|
}
|
||||||
|
self.scheduler.run_timed(run_params, None, time.time() + 20)
|
||||||
|
|
||||||
def analyze(self):
|
def analyze(self):
|
||||||
popt, pcov = curve_fit(model_numpy,
|
popt, pcov = curve_fit(model_numpy,
|
||||||
self.frequency.read, self.brightness.read,
|
self.frequency.read, self.brightness.read,
|
||||||
|
|
Loading…
Reference in New Issue