slurm_script_generator.utils
Functions
| Name | Description |
|---|---|
add_line | Add a line to the script with an optional comment, aligned to the right. |
add_linefunction#
def add_line(line, comment=None, line_length=54)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.