forked from M-Labs/artiq
1
0
Fork 0

examples/flopping_f_simulation: use scheduler API

This commit is contained in:
Sebastien Bourdeauducq 2015-02-19 12:10:19 -07:00
parent d01ba8e644
commit cca6a17cfb
1 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,14 @@ class FloppingF(AutoDB):
self.brightness.append(brightness)
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):
popt, pcov = curve_fit(model_numpy,
self.frequency.read, self.brightness.read,