Skip to content

Tools

Created on Jan 15, 2010

@author: Roland Kaminski

import_from_path(module_name: str, file_path: str) -> ModuleType

Helper function to import modules from path.

Attributes:

Name Type Description
module_name str

Name of the module.

file_path str

Path to the module.

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>d] [<H>h] [<M>m] [<S>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>d] [<H>h] [<M>m] [<S>s] time format to seconds.

Attributes:

Name Type Description
str_rep str

String representation.