set_count_time(1.0)

detectors = [mythen, mythen.acquire_time, pixel, pixel.image_filename, image.intensity,image.corrected_intensity, image.matrix]

#pixel.set_path("tmp", "gobbo")
pixel.set_path("../../expdata/bml_20190211a/pixel/", "images")


pixel.set_threshold(40, 500, 8000, 100000)
pixel.show()
pixel.assert_ready()


#tscan(detectors, 1, 1.0 ,  before_read=trigger_detectors, after_read=save_metadata)

lscan (l, detectors, 1.9, 2.1, 40 ,  before_read=trigger_detectors, after_read=save_metadata)

