windnode_kwum.tools package

Submodules

windnode_kwum.tools.config module

This module provides a highlevel layer for reading and writing config files. There must be a file called “config.ini” in the root-folder of the project. The file has to be of the following structure to be imported correctly.

The filestructure is like:

[SectionName] Option1 = value1 Option2 = value2

windnode_kwum.tools.config.create_data_dirtree()[source]

Create data root path, if necessary

windnode_kwum.tools.config.get(section, key)[source]

returns the value of a given key of a given section of the main config file. :param section: the section. :type section: str. :param key: the key. :type key: str. :returns: the value which will be casted to float, int or boolean. if no cast is successfull, the raw string will be returned.

windnode_kwum.tools.config.get_data_root_dir()[source]

Get root dir of data which is located in parent directory of package directory

windnode_kwum.tools.config.load_config(filename)[source]

windnode_kwum.tools.data module

windnode_kwum.tools.draw module

windnode_kwum.tools.geo module

windnode_kwum.tools.logger module

windnode_kwum.tools.logger.setup_logger(log_dir=None, loglevel=10)[source]

Instantiate logger

Parameters:
  • log_dir (str) – Directory to save log, default: <package_dir>/../../logs/
  • loglevel – Loglevel
Returns:

Return type:

instance of logger

Module contents