es2mapping
Tessif subpackage to transform the repsective simulation model representation of an (optimized) energy system into a mapping keyed and valued as subsequent postprocessing requires. Namely:
map attributes to node and edges
filter out only the results needed
do (simple) postprocessing calculations to create sensible energy system mappings
Mapping in this conntext refers to data mappings.
The heavy lifting of the transformation is done by a respective
base.ESTransformer
subclass specifically designed for the energy system simulation model type
used. It extracts and transforms the data into a dictionairy.
The beforementioned approach results in following benefits:
Developing additional child classes for
ESTransformerand a ‘mapping to energy system’ transform module inmapping2esortsfis enough to support new, yet unsupported energy system simulation tools. (Refer also to Adding New Models)All operations commonly performed on graph like networks (system of nodes and edges) can be executed on the energy system because after transformation it is easily parsed to tools like:
Others might list here in the future
This potentially allows to transform different energy system simulation model types into one another (As of September 2019 though this seems to be a long way down the road.)
Also refer to tessif.examples to see examples for the mentioned
“benefits”.
- tessif.transform.es2mapping.compile_result_data_representation(optimized_es, software, node)[source]
Convenience wrapper to compile result data representation.
Explicitly reproduces the result data representation table as stated in the lead author’s phd thesis in ‘Theory’ -> ‘Graph Theory Tools’ -> ‘Result Data Representation’
- Parameters:
optimized_es¶ (software_specific_optimized_energy_system) – An optimized energy system containing its results as in tessif.simulate
software¶ (str) – String naming the
registered_modelsrepresenting tessif’s supported energy supply system simulation modelsnode¶ (str) – String representing the node’s
uidsof which the result data representation is to be compiled.