From 0680be91c981525ce5866b73f9fa87bfd22080f4 Mon Sep 17 00:00:00 2001 From: gac-x10da Date: Tue, 19 Mar 2019 12:45:41 +0100 Subject: [PATCH] Script execution --- script/daq/PumpProbeXES_W1_v2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/daq/PumpProbeXES_W1_v2.py b/script/daq/PumpProbeXES_W1_v2.py index 23cc4ce..9e3a7af 100644 --- a/script/daq/PumpProbeXES_W1_v2.py +++ b/script/daq/PumpProbeXES_W1_v2.py @@ -98,7 +98,8 @@ def before_sample(): try: tscan(detectors + [ROI1_Off, ROI2_Off, ROI1_Diff, ROI2_Diff], 30, 0, before_read = before_sample, \ - line_plots = [ROI1_Diff, ROI2_Diff], enabled_plots = [ROI1_Diff, ROI2_Diff])finally: + line_plots = [ROI1_Diff, ROI2_Diff], enabled_plots = [ROI1_Diff, ROI2_Diff]) +finally: for det in detectors: det.close()