parameters: (path, name, nruns, proxy_path=None)
return_statement: return job_submit_file
docstring: Writes 'job.submit' file in `path`.
      Arguments:
      - `path`: job directory
      - `script`: script to be executed
      - `proxy_path`: path to proxy (only used in case of requested proxy forward)
docstring_summary: Writes 'job.submit' file in `path`.
      Arguments:
      - `path`: job directory
      - `script`: script to be executed
      - `proxy_path`: path to proxy (only used in case of requested proxy forward)
docstring_tokens: Writes job . submit file in path . Arguments : - path : job directory - script : script to be executed - proxy_path : path to proxy ( only used in case of requested proxy forward )
function: def write_HTCondor_submit_file(path, name, nruns, proxy_path=None):
  ##############################################
      """Writes 'job.submit' file in `path`.
      Arguments:
      - `path`: job directory
      - `script`: script to be executed
      - `proxy_path`: path to proxy (only used in case of requested proxy forward)
      """
          
      job_submit_template="""\
  universe              = vanilla
  executable            = {script:s}
  output                = {jobm:s}/{out:s}.out
  error                 = {jobm:s}/{out:s}.err
  log                   = {jobm:s}/{out:s}.log
  transfer_output_files = ""
  +JobFlavour           = "{flavour:s}"
  queue {njobs:s}
  """
      if proxy_path is not None:
          job_submit_template += """\
  +x509userproxy        = "{proxy:s}"
  """
          
      job_submit_file = os.path.join(path, "job_"+name+".submit")
      with open(job_submit_file, "w") as f:
          f.write(job_submit_template.format(script = os.path.join(path,name+"_$(ProcId).sh"),
                                             out  = name+"_$(ProcId)",
                                             jobm = os.path.abspath(path),
                                             flavour = "tomorrow",
                                             njobs = str(nruns),
                                             proxy = proxy_path))
  
      return job_submit_file
function_tokens: def write_HTCondor_submit_file ( path , name , nruns , proxy_path = None ) : ############################################## job_submit_template = """\
  universe              = vanilla
  executable            = {script:s}
  output                = {jobm:s}/{out:s}.out
  error                 = {jobm:s}/{out:s}.err
  log                   = {jobm:s}/{out:s}.log
  transfer_output_files = ""
  +JobFlavour           = "{flavour:s}"
  queue {njobs:s}
  """ if proxy_path is not None : job_submit_template += """\
  +x509userproxy        = "{proxy:s}"
  """ job_submit_file = os . path . join ( path , "job_" + name + ".submit" ) with open ( job_submit_file , "w" ) as f : f . write ( job_submit_template . format ( script = os . path . join ( path , name + "_$(ProcId).sh" ) , out = name + "_$(ProcId)" , jobm = os . path . abspath ( path ) , flavour = "tomorrow" , njobs = str ( nruns ) , proxy = proxy_path ) ) return job_submit_file