From 36bc8f9892b62eec80e7beadc53a12c4186a9ee7 Mon Sep 17 00:00:00 2001 From: x03daop Date: Tue, 5 Apr 2016 16:42:12 +0200 Subject: [PATCH] Script execution --- script/local.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 040e84e4..04a3d952 100644 --- a/script/local.py +++ b/script/local.py @@ -211,12 +211,15 @@ def append_diag_datasets(parent = None): append_dataset(group+get_diag_name(f), x) -def before_readout(): +def wait_beam(): if not beam_ok: print "Waiting for beam..." while not beam_ok: time.sleep(0.1) print "Beam ok" + +def before_readout(): + wait_beam() trig_scienta()