Skip to content

Tools

Created on Jan 15, 2010

@author: Roland Kaminski

mkdir_p(path: str) -> None

Simulates "mkdir -p" functionality.

Attributes:

Name Type Description
path str

A string holding the path to create.

seconds_to_slurm_time(int_rep: int) -> str

Converts time in seconds to 'DD-HH:MM:SS' time format.

Attributes:

Name Type Description
int_rep int

Int representation.

seconds_to_xml_time(int_rep: int) -> str

Converts time in seconds to '[d][h] [m][s]' time format.

Attributes:

Name Type Description
int_rep int

Int representation.

set_executable(filename: str) -> None

Set execution permissions for given file.

Attributes:

Name Type Description
filename str

A file

xml_to_seconds_time(str_rep: str) -> int

Converts '[d][h] [m][s]' time format to seconds.

Attributes:

Name Type Description
str_rep str

String representation.