set_count_time(1.0) detectors = [pixel, pixel.image_filename, image.intensity,image.corrected_intensity, image.matrix] pixel.set_path("tmp", "gobbo") #pixel.set_threshold(40, 500, 8000, 100000) pixel.show() pixel.assert_ready() lscan (xv, detectors, -0.4, 0.4, 40, 0.1, relative=True, before_read=before_sample, after_read=after_sample)