def get_run_id(self): """ Get the run id, id_prefix, and id_suffix options in the run command """ args = separate_args(self.lines[self.run_cmd_line_id]) run_id = get_command_single_value(args, ('--id', '--id=')) run_id_prefix = get_command_single_value( args, ('--id-prefix', '--id-prefix=')) run_id_suffix = get_command_single_value( args, ('--id-suffix', '--id-suffix=')) return run_id, run_id_prefix, run_id_suffix
def get_nprocs(self): """ Get the nprocs option in the run command """ args = separate_args(self.lines[self.run_cmd_line_id]) return get_command_single_value(args, ('--nprocs', '--nprocs=', '-n'))
def get_parameters(self): """ Get the parameters option in the run command """ args = separate_args(self.lines[self.run_cmd_line_id]) return get_command_single_value(args, ('--param', '--param=', '-p'))
def get_coupling(self): """ Get the coupling option in the run command """ args = separate_args(self.lines[self.run_cmd_line_id]) return get_command_single_value(args, ('--coupling', '--coupling='))
def get_nthreads(self): """ Get the nthreads option in the run command """ args = separate_args(self.lines[self.run_cmd_line_id]) return get_command_single_value( args, ('--threads-per-task', '--threads-per-task=', '-nt'))
def get_compute_build(self): """ Get the compute-build option in the run command """ args = separate_args(self.lines[self.run_cmd_line_id]) return get_command_single_value( args, ('--compute-build', '--compute-build='))