Exemplo n.º 1
0
def trigger_autorefl(fnumber, fname=None, image_path=None):
  '''
    Call autorefl script with current run number. 
    The script will handle communication with running instance
    or start of new instance of the script.
  '''
  from quicknxs.auto_reflectivity import ReflectivityBuilder, FileCom
  if FileCom.check_running():
    FileCom.send_new_file(fnumber, fname, image_path)
  else:
    ReflectivityBuilder.spawn_daemon(fnumber, fname, image_path)
Exemplo n.º 2
0
def kill_autorefl():
  from quicknxs.auto_reflectivity import FileCom
  FileCom.kill_daemon()