Configurations

Package-wide configurations.

configurations is a tessif subpackage aggregating frequently used parameters, used naming and unit conventions as well as some logging behavior.

It serves as main reference point for adjusting Tessif’s parsing behavior.

tessif.frused.configurations.temporal_resolution = 'hourly'

Currently used temporal resolution. Must be one of the keys found in temporals.

Currently set to:

from tessif.frused.configurations import temporal_resolution
print(temporal_resolution)
hourly
tessif.frused.configurations.node_uid_style = 'name'

Switch for tweaking internal node uid representation style.

Useful for conveniently changing internal mapping behaviour. Must be one of node_uid_styles.

Somehting like name allows for quick and intuitive node accessing while sacrificing the possibility of 2 nodes having the same name.

qualname on the other hand maps everything to the fully qualified name. Meaning only ever the full combination of all Uid attributes has to be unique per energy system.

Warning

Tessif’s doctests assumes node_uid_style = 'name' which is the most basic and intuitive way of mapping nodes. Designed for the use of relatively small energy systems (what ever that means).

For a list of available styles and their key (the string set to node_uid_style) see tessif.frused.namedtuples.node_uid_styles.

Currently set to:

from tessif.frused.configurations import node_uid_style
print(node_uid_style)
name
tessif.frused.configurations.node_uid_seperator = '_'

Seperate different tags of the same node uid

Seperate symbol for (uniquely) identifying a node’s uid using various tags of the namedtuples implementation.

Currently set to:

from tessif.frused.configurations import node_uid_seperator
print(node_uid_seperator)
_
tessif.frused.configurations.timeseries_seperator = '.'

Seperate energy system object and timeseries value.

Serperator symbol for identifying energy system object and its timeseries values when reading in data.

Standard syntax:

{ES_OBJECT}{SEPERATOR}{TIMESERIES_PARAMETER}.

Currently set to:

import tessif.frused.configurations as config
print(config.timeseries_seperator)
.

So PV{SEPERATOR}max and Onshore{SEPERATOR}fix results in:

import tessif.frused.configurations as config
print(f"PV{config.timeseries_seperator}max")
PV.max

print(f"Onshore{config.timeseries_seperator}fix")
Onshore.fix
tessif.frused.configurations.mimos = 10

Number of seperate inputs/outputs supported for multiple input output energy system transformers.

Currently set to:

import tessif.frused.configurations as config
print(config.mimos)
10
tessif.frused.configurations.power_reference_unit = 'MW'

Unit to display power results with.

Currently set to:

import tessif.frused.configurations as config
print(config.power_reference_unit)
MW
tessif.frused.configurations.cost_unit = '€'

Unit representing the costs.

Currently set to:

import tessif.frused.configurations as config
print(config.cost_unit)
€
tessif.frused.configurations.spellings_logging_level = 'debug'

logging level used by spellings.get_from.

Must be one of the keys found in logging_levels.

Currently set to:

import tessif.frused.configurations as config
print(config.spellings_logging_level)
info
tessif.frused.configurations.general_logging_level = 'info'

logging level used by tessif.logging.

Currently set to:

import tessif.frused.configurations as config
print(config.spellings_logging_level)
info
tessif.frused.configurations.maximum_logging_file_size = 2062336

Maximum logging file size in bytes.

Currently set to:

import tessif.frused.configurations as config
print(config.maximum_logging_file_size)
1048576  # 1 MB.
tessif.frused.configurations.maximum_number_of_logs = 13

Maximum number of kept logging files.

Currently set to:

import tessif.frused.configurations as config
print(config.maximum_number_of_logs)
10