PlasmaCalcs.tools.supercomputer.read_slurm_options
- PlasmaCalcs.tools.supercomputer.read_slurm_options(filename, *, eval=True)
- returns SlurmOptionsDict of all slurm-related options defined in this file.options are defined as lines which look like one of the following:“#SBATCH -N 4” –> key=’-N’, value=4.“#SBATCH –time=1:00:00” –> key=’–time’, value=’1:00:00’
- eval: bool
- whether to attempt ast.literal_eval(value) for each value. (False –> keep all as str.)