slurm_option_here
- PlasmaCalcs.tools.supercomputer.slurm_option_here(key, dir='.', *, eval=True)
return the value of the slurm-related option with this key, from slurm files within dir.
searches all slurmfiles within this directory.Crashes if key not present with same exact value, in all slurmfiles.Recognizes some aliases for some keys; see SlurmOptionsDict.DEFAULT_ALIASES.(e.g. ‘-N’ and ‘–nodes’ are aliases of each other)- key: str
- option or alias to option. Should include leading ‘-’ or ‘–‘.
- eval: bool
- whether to attempt ast.literal_eval(value) for each value. (False –> keep all as str.)
Equivalent:slurm_options_here(dir, only=[key], …)[key]