Commit 4e0c403a authored by John Douglas Veitch's avatar John Douglas Veitch 💬
Browse files

lalinference_pipe.py: move check for pegasus and condor submit out of loop

Original: 8a5ea274c965e9cf27f1f71025a9edb9b7583ec5
parent b8731d16
......@@ -49,6 +49,10 @@ if len(args)!=1:
print 'Error: must specify one ini file'
sys.exit(1)
if opts.condor_submit and opts.pegasus_submit:
print 'Error: Please only specify one of --condor-submit or --pegasus-submit'
sys.exit(1)
inifile=args[0]
cp=ConfigParser.ConfigParser()
......@@ -177,9 +181,6 @@ for sampler in samps:
cp.set('engine','chirpmass-min',str(mc_min))
cp.set('engine','chirpmass-max',str(mc_max))
cp.set('engine','q-min',str(q_min))
if opts.condor_submit and opts.pegasus_submit:
print 'Error: Please only specify one of --condor-submit or --pegasus-submit'
sys.exit(1)
if opts.run_path is not None:
cp.set('paths','basedir',os.path.abspath(opts.run_path))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment