jobhandler package¶
jobhandler.submit module¶
-
class
jobhandler.submit.
JobSubmitter
(sim_dirs, template, pair, cmd, additions=[])[source]¶ Bases:
object
-
__init__
(sim_dirs, template, pair, cmd, additions=[])[source]¶ Instantiation.
- Parameters
sim_dirs (list) – All simulation directories
template (str) – Batch script template file, entries to be replaced start and end with an at sign ‘@’
pair (dict) – Keys are strings that are replaced in the template file (keys do not have ‘@’) with corresponding value.
cmd (str) – Batch submit command, e.g. sbatch for SLURM
additions (list [str], optional) – Additional commands like ‘source’, export that should be added to the file. These will be prepended
Notes
Submit jobs with JobSubmitter.submit() function
-