Commit 6d336a4e authored by Chad Hanna's avatar Chad Hanna Committed by Kipp Cannon

inspiral_pipe.py: fix use of default value in condor_command_dict_from_opts

parent 7efc6222
......@@ -387,7 +387,7 @@ if __name__ == "__main__":
doctest.testmod()
def condor_command_dict_from_opts(opts, defaultdict = {}):
def condor_command_dict_from_opts(opts, defaultdict = None):
"""!
A function to turn a list of options into a dictionary of condor commands, e.g.,
......@@ -399,6 +399,8 @@ def condor_command_dict_from_opts(opts, defaultdict = {}):
{'TARGET.Online_CBC_SVD ': '?= True', '+Online_CBC_SVD': 'True'}
"""
if defaultdict is None:
defaultdict = {}
for o in opts:
osplit = o.split("=")
k = osplit[0]
......
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