def detector_set_filename(filename): print("detector filename") print(filename) last_slash = rfind(filename,"/") last_underscore = rfind(filename,"_") last_dot = rfind(filename,".") img_path = filename[0:last_slash] epics_det.det_set_filepath(img_path) img_prefix = filename[last_slash+1:last_underscore] epics_det.det_set_fileprefix(img_prefix) img_number = filename[last_underscore+1:last_dot] epics_det.det_set_filenum(int(img_number))
def detector_set_filename(filename): logger.info("detector filename") logger.info(filename) last_slash = rfind(filename, "/") last_underscore = rfind(filename, "_") last_dot = rfind(filename, ".") img_path = filename[0:last_slash] epics_det.det_set_filepath(img_path) img_prefix = filename[last_slash + 1:last_underscore] epics_det.det_set_fileprefix(img_prefix) img_number = filename[last_underscore + 1:last_dot] epics_det.det_set_filenum(int(img_number))
def detector_set_fileprefix(fileprefix): print("set detector file prefix " + fileprefix) epics_det.det_set_fileprefix(fileprefix)
def detector_set_fileprefix(fileprefix): logger.info("set detector file prefix " + fileprefix) epics_det.det_set_fileprefix(fileprefix)