Exemple #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))
Exemple #2
0
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))
Exemple #3
0
def detector_set_filenumber(filenumber): #I think this does nothing with the eiger
  print("set detector file number " + str(filenumber))
  epics_det.det_set_filenum(filenumber)
Exemple #4
0
def detector_set_filenumber(
        filenumber):  #I think this does nothing with the eiger
    logger.info("set detector file number " + str(filenumber))
    epics_det.det_set_filenum(filenumber)
Exemple #5
0
def detector_set_filenumber(filenumber):
  print "set detector file number " + str(filenumber)
  epics_det.det_set_filenum(filenumber)