ifw-core
2.0.0
|
Classes | |
class | ConstantRegistry |
Class to handle conversion between state names and the corresponding numerical representation. More... | |
class | StopWatch |
Stopwatch class. More... | |
Functions | |
def | exec_cmd |
Execute a command and return tuple with (<exit code>="">, <stdout>, <stderr>). More... | |
def | get_location |
Get location of the current position in a source file of the Python interpreter. More... | |
def | get_module |
Get the name of the current module. More... | |
def | get_ip_address |
Return IP address of execution node. More... | |
def | get_iso_time |
Return ISO8601 time for the time at the invocation. More... | |
def | debug |
Print a debug log to stdout. More... | |
def | revert_dic |
Revert a dictionary (making the values to keys and vice versa). More... | |
def | key_in_dic |
Return True if the given key is in the dictionary. More... | |
def | resolve_path |
Resolve the given path. More... | |
def | find_file |
def | concat_elements |
Concat the elements in the list, applying the "concat_char" as separator. More... | |
def | rand_dbl |
Generate a random number in the given interval. More... | |
def | gen_cwd |
def ctdUtils.utils.concat_elements | ( | elements_list, | |
concat_char = "." |
|||
) |
Concat the elements in the list, applying the "concat_char" as separator.
def ctdUtils.utils.debug | ( | msg | ) |
Print a debug log to stdout.
def ctdUtils.utils.exec_cmd | ( | cmd | ) |
Execute a command and return tuple with (<exit code>="">, <stdout>, <stderr>).
def ctdUtils.utils.find_file | ( | filename, | |
root_dirs = ["INTROOT" , |
|||
CFGROOT, | |||
DATAROOT, | |||
SYSROOT, | |||
resource_dirs = ["config" , |
|||
audio, | |||
image, | |||
model, | |||
dictionary, | |||
data, | |||
exception = True |
|||
) |
def ctdUtils.utils.gen_cwd | ( | module_path, | |
test_dir | |||
) |
def ctdUtils.utils.get_ip_address | ( | ) |
Return IP address of execution node.
def ctdUtils.utils.get_iso_time | ( | ) |
Return ISO8601 time for the time at the invocation.
def ctdUtils.utils.get_location | ( | level = -3 | ) |
Get location of the current position in a source file of the Python interpreter.
level Level in the stack to use as location (integer).
Returns Location in the format: '<mod>:<method>:<ln no>="">' (string).
def ctdUtils.utils.get_module | ( | ) |
Get the name of the current module.
def ctdUtils.utils.key_in_dic | ( | dic, | |
key | |||
) |
Return True if the given key is in the dictionary.
def ctdUtils.utils.rand_dbl | ( | lower_limit, | |
upper_limit | |||
) |
Generate a random number in the given interval.
def ctdUtils.utils.resolve_path | ( | path | ) |
Resolve the given path.
def ctdUtils.utils.revert_dic | ( | dic | ) |
Revert a dictionary (making the values to keys and vice versa).