示例#1
0
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))
示例#2
0
文件: det_lib.py 项目: stumyers/lsdc
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))
示例#3
0
def detector_set_fileprefix(fileprefix):
  print("set detector file prefix " + fileprefix)
  epics_det.det_set_fileprefix(fileprefix)
示例#4
0
文件: det_lib.py 项目: stumyers/lsdc
def detector_set_fileprefix(fileprefix):
    logger.info("set detector file prefix " + fileprefix)
    epics_det.det_set_fileprefix(fileprefix)