Commit 64672fc6 authored by Chris Pankow's avatar Chris Pankow

dagutils.py: tweak option handling/reading slightly

Original: a45c6fc5c37f7721d535535f38b28f5f67b2b1c6
parent 48dc4935
......@@ -106,9 +106,10 @@ def write_integrate_likelihood_extrinsic_sub(tag='integrate', exe=None, log_dir=
# NOTE: Hack to get around multiple instances of the same option
for p in param:
ile_job.add_arg("--%s %s" % (opt.replace("_", "-"), str(p)))
elif param is True:
elif param is True or param is None:
ile_job.add_opt(opt.replace("_", "-"), '')
elif not param:
# Explcitly check for False to turn it off
elif param is False:
continue
else:
ile_job.add_opt(opt.replace("_", "-"), str(param))
......
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