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):