pwtools.batch.Machine¶
- class pwtools.batch.Machine(hostname=None, subcmd=None, scratch=None, home=None, template=None, filename=None)[source]¶
Bases:
object
Container for machine-specific stuff.
Most of the machine-specific settings can (and should) be placed in the corresponding job template file. But some settings need to be in sync between files like the scratch dir, the $HOME etc.
Useful to predefine commonly used machines.
- __init__(hostname=None, subcmd=None, scratch=None, home=None, template=None, filename=None)[source]¶
- Parameters:
hostname (st) – machine name (‘mars’, ‘local’, …)
subcmd (str) – shell command to submit jobfiles (e.g. ‘bsub <’, ‘qsub’)
scratch (str) – scratch dir (like ‘/scratch’)
home (str) – $HOME
template (FileTemplate)
filename (str) – full jobfile name for FileTemplate (e.g. ‘calc.templ/job.local’), use either this or template
Methods
Return a dict of SQLEntry instances.