From 2fec6021b8b352f865c605b4e4484e8b318af0d3 Mon Sep 17 00:00:00 2001 From: x03daop Date: Tue, 2 Aug 2016 10:36:00 +0200 Subject: [PATCH] Script execution --- script/local.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 9a4b42ee..e3db5c4a 100644 --- a/script/local.py +++ b/script/local.py @@ -227,7 +227,13 @@ def wait_beam(): def before_readout(): wait_beam() - trig_scienta() + sample_scienta = False + for dev in ["Scienta.spectrum","EnergyDistribution", "AngleDistribution", "Scienta.dataMatrix"]: + if dev in SENSORS: + sample_scienta = True + break + if sample_scienta: + trig_scienta() def after_readout(rec):