def __init__(self): '''Initialise the Driver instance.''' super(DefaultDriver, self).__init__() # settings for the job to run self._executable = None # command_line should be a list of separate elements # note well that this is different to how things worked before self._command_line = [] self._working_directory = os.getcwd() self._working_environment = { } self._working_environment_exclusive = [] # presuming here that the number of input commands is # usually small self._standard_input_records = [] # this will be bigger but that is ok... self._standard_output_records = [] # optional - possibly useful if using a batch submission # system or wanting to describe better what the job is doing self._input_files = [] self._output_files = [] self._scratch_directories = [] self._log_file = None self._log_file_name = None self._task = None self._finished = False self._name = generate_random_name() # this will be assigned if auto-logfiler (c/f xia2.lib.guff) # note that there are no guidelines for this...! # bug 2690... xia2 process id is name... self._xpid = 0 self._cpu_threads = 1 return
def __init__(self): '''Initialise the Driver instance.''' # settings for the job to run self._executable = None # command_line should be a list of separate elements # note well that this is different to how things worked before self._command_line = [] self._working_directory = os.getcwd() self._working_environment = {} self._working_environment_exclusive = [] # presuming here that the number of input commands is # usually small self._standard_input_records = [] # this will be bigger but that is ok... self._standard_output_records = [] # optional - possibly useful if using a batch submission # system or wanting to describe better what the job is doing self._input_files = [] self._output_files = [] self._scratch_directories = [] self._log_file = None self._task = None self._finished = False self._name = generate_random_name() # this will be assigned if auto-logfiler (c/f lib.guff) # note that there are no guidelines for this...! # bug 2690... xia2 process id is name... self._xpid = 0 return
def reset(self): '''Reset the output things.''' self._standard_input_records = [] self._standard_output_records = [] self._command_line = [] # optional - possibly useful if using a batch submission # system or wanting to describe better what the job is doing self._input_files = [] self._output_files = [] self._scratch_directories = [] if self._log_file is not None: self._log_file.flush() self._log_file.close() self._log_file = None # reset the name to a new value... self._name = generate_random_name()
def reset(self): '''Reset the output things.''' self._standard_input_records = [] self._standard_output_records = [] self._command_line = [] # optional - possibly useful if using a batch submission # system or wanting to describe better what the job is doing self._input_files = [] self._output_files = [] self._scratch_directories = [] if not self._log_file is None: self._log_file.flush() self._log_file.close() self._log_file = None # reset the name to a new value... self._name = generate_random_name() return