Skip to content
Snippets Groups Projects

Installation updates

Merged Meg Millhouse requested to merge meg.millhouse/bayeswave:fix-env-needs into master
Files
4
@@ -945,13 +945,20 @@ def condor_job_config(job_type, condor_job, config_parser):
"""
valid_job_types=['bayeswave','bayeswave_post','bayeswave_fpeak','bayeswave_clean_frame','megaplot']
# When using default env, need to add capitalization etc in
executableNames = {'bayeswave':'BayesWave','bayeswave_post':'BayesWavePost','bayeswave_fpeak':'BayesWaveFpeak','bayeswave_clean_frame':'BayesWaveCleanFrame','megaplot':'megaplot.py'}
try:
job_index = valid_job_types.index(job_type)
except ValueError:
print("unrecognized job type", file=sys.stderr)
# --- Set executable and choose singularity image
executable=config_parser.get('engine',job_type)
try:
executable=config_parser.get('engine',job_type)
except:
condaenv=sys.prefix+'/bin/'
executable=condaenv+executableNames[job_type]
print("Using executable...", executable)
universe=config_parser.get('condor','universe')
pipeline.CondorDAGJob.__init__(condor_job,universe,executable)
pipeline.AnalysisJob.__init__(condor_job,config_parser)
Loading