SBatchJob
Provides a simple interface to formatting SLURM
files so that they can be submitted to sbatch.
The hope is that this can be subclassed codify
options for different HPC paritions and whatnot.
slurm_keys: list
default_opts: dict
sbatch_opt_template: str
sbatch_template: str
sbatch_enter_command: str
sbatch_exit_command: str
__init__(self, description=None, job_name=None, account=None, partition=None, mem=None, nodes=None, ntasks_per_node=None, chdir=None, output=None, steps=(), **opts):
clean_opts(self, opts):
Makes sure opt names are clean. Does no validation of the values sent in.
opts:Any:returns:_
format_opt_block(self):
Formats block of options
:returns:_
format(self):
Formats an SBATCH file from the held options
call_steps:Any:returns:_