From f14e4fb0a0d3ced5d62cc8f84f26c34a018ae115 Mon Sep 17 00:00:00 2001 From: x03daop Date: Tue, 3 Nov 2015 14:56:37 +0100 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 90075f9e..ad274291 100644 --- a/script/local.py +++ b/script/local.py @@ -201,10 +201,16 @@ def append_diag_datasets(parent = None): SAVE_DIAGS = True -def AfterReadout(rec): +def after_readout(rec): if SAVE_DIAGS: if rec.index == 0: create_diag_datasets() append_diag_datasets() +def adjust_sensors(): + if SENSORS is not None: + # Move integration to end + for dev in [Integration, AngleDistribution]: + if dev in SENSORS: + SENSORS=SENSORS+[SENSORS.pop(SENSORS.index(dev))] \ No newline at end of file