Tools¶
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: module_name (str): Name of the module. file_path (str): Path to the module.
mkdir_p(path: str) -> None
¶
Simulates mkdir -p functionality.
Attributes: 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: 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: int_rep (int): Int representation.
set_executable(filename: str) -> None
¶
Set execution permissions for given file.
Attributes: 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: str_rep (str): String representation.