gaps.hpc.format_walltime#

format_walltime(hours=None)[source]#

Get the SLURM walltime string in format “HH:MM:SS”

Parameters:

hours (float | int, optional) – Requested number of job hours. By default, None, which returns an empty string.

Returns:

walltime (str) – SLURM walltime request in format “#SBATCH –time=HH:MM:SS”