diff --git a/gstlal/python/dagparts.py b/gstlal/python/dagparts.py index cc94133e35c9ec8fdaa39111d47b64239af2176b..ba7ecaac77b4c55098e8a106c4e54d0d46e8ca98 100644 --- a/gstlal/python/dagparts.py +++ b/gstlal/python/dagparts.py @@ -178,7 +178,7 @@ class DAGJob(pipeline.CondorDAGJob): os.mkdir(self.output_path) except: pass - for cmd,val in condor_commands.items(): + for cmd, val in condor_commands.items(): self.add_condor_cmd(cmd, val) diff --git a/gstlal/python/pipeline.py b/gstlal/python/pipeline.py index 74e571a39a34cd7b77ebfa06da3cc50fe7fde5b7..192339c6ea84e14406ca3ccbbc8c0167ae2697e0 100644 --- a/gstlal/python/pipeline.py +++ b/gstlal/python/pipeline.py @@ -25,6 +25,7 @@ from glue import git_version __date__ = git_version.date __version__ = git_version.id +from collections import OrderedDict import os import sys import re @@ -386,7 +387,7 @@ class CondorJob(object): self.__options = {} self.__short_options = {} self.__arguments = [] - self.__condor_cmds = {} + self.__condor_cmds = OrderedDict() self.__notification = None self.__log_file = None self.__in_file = None