From 241b7b4b4eb7ffe0e67a5709ef4eb9c052f2d212 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Tue, 30 Oct 2018 10:30:21 +0100 Subject: [PATCH] Script execution --- script/local.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/script/local.py b/script/local.py index fac97d5..76eaaea 100644 --- a/script/local.py +++ b/script/local.py @@ -43,12 +43,10 @@ count_id = None image_filename = None -def pix_is_on(): - return pixel in scan.readables -def before_sample(position, scan): +def trigger_detectors(position, scan): global count_time, count_id, image_filename - pix_is_on = self.pix_is_on(scan) + pix_is_on = pixel in scan.readables mythen.abort() open_shutter() if (count_time != 0):