teaser.logic package

Subpackages

Submodules

teaser.logic.utilities module

Utilities: Collection of all utility functions that are useful in several classes

teaser.logic.utilities.celsius_to_kelvin(value)[source]
teaser.logic.utilities.clear_directory(dir_path=None)[source]

Function to delete all files inside a directory.

Parameters
dir_pathstr

Path of directory to be deleted. By default the teaser default directory is cleared

teaser.logic.utilities.create_path(path)[source]

Create a folder.

Creates a new folder.

Parameters
pathstr
teaser.logic.utilities.division_from_json(ordereddict)[source]

function to transform the output of division in json after loading to python into float values

Parameters
ordereddictoutput of the json load of arguments like
“persons”: {“/”:[1,15]}
teaser.logic.utilities.get_default_path()[source]

Function to construct default path to OutputData folder This function constructs the default path to the OutputData folder

teaser.logic.utilities.get_full_path(rel_path)[source]

Helperfunction to construct pathes to files within teaser.

Parameters
rel_pathstr

Relative path beginning from teaser source folder including filename

Returns
full_pathstr