From c3d07c8fcdbfe7921c744f360d10faa322d04fbf Mon Sep 17 00:00:00 2001 From: x10daop Date: Tue, 28 Feb 2017 15:15:36 +0100 Subject: [PATCH] Closedown --- script/local.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/local.py b/script/local.py index 8ff46c6..6698e2b 100644 --- a/script/local.py +++ b/script/local.py @@ -16,5 +16,13 @@ crlogic_config["additionalBacklash"] = 0.01 crystal.setTrustedMonitor(True) +def setup_brag_plot(auto=True) + if auto: + setup_plotting(range = "auto") + else: + offset = bragg.read() - bragg.readback.read() + setup_plotting(range = [scan_start - offset, scan_stop - offset]) + + #add_device(bragg.getExtEncoder(), True)