slurm_script_generator.utils

Contents

slurm_script_generator.utils#

Functions

add_line(line[, comment, line_length])

Add a line to the script with an optional comment, aligned to the right.

slurm_script_generator.utils.add_line(line, comment=None, line_length=54)[source]#

Add a line to the script with an optional comment, aligned to the right.

Parameters:
  • line (str) – The line to add to the script.

  • comment (str, optional) – An optional comment to add to the line. Defaults to None.

  • line_length (int, optional) – The length of the line before the comment starts. Defaults to 54.