A package that contains postprocessing and visualisation tools for oemof-solph models
Project description
Installation
Use pypi to install the latest version. You can install the version just to plot graphs on oemof-solph results with
pip install oemof.visio
or you can install the extra requirements to also produce an image of the energy system
pip install oemof.visio[network]
You can also clone this repository and install locally with
pip install .
or
pip install .[network]
Special for Windows in case of optional network setting: download Graphviz (https://graphviz.org/download/) install it on your system -> activate “add PATH” variables during installation process otherwise the executable cannot be found. Afterwards, restart your environment.
Examples
Have a look at the plotting examples at the ‘oemof_example’ repository to learn how to create the following examples.
(scientifically correct)
(smooth)
Render energy system
To render the component of an energy system, you can insert this code before you turn your EnergySytem instance into a model (not well suited for very large models).
from oemof.visio import ESGraphRenderer
esgr = ESGraphRenderer(
<your EnergySystem instance>,
legend=True,
filepath="full path including filename without extension",
img_format="pdf"
)
esgr.render()
Sankey diagramm
To produce a sankey diagramm from the raw oemof-solph results you can use this code snippet into your own model file
import plotly.io as pio
from oemof.visio import ESGraphRenderer
esgr = ESGraphRenderer(<your EnergySystem instance>)
# after the solve method of the model has been called
results = solph.processing.results(model)
fig_dict = esgr.sankey(results)
pio.show(fig_dict)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oemof_visio-0.0.2.tar.gz.
File metadata
- Download URL: oemof_visio-0.0.2.tar.gz
- Upload date:
- Size: 128.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d1ea68b45b0ee976c6f45d7cbfb8dda6a8bd59ad75ebffe6ea11320f13d00a4
|
|
| MD5 |
723223682466380abfb6d101b6ceccb0
|
|
| BLAKE2b-256 |
952f1a6904fd4deb2b9b28866849fc66575077eb758a651617158b25bacd7479
|
File details
Details for the file oemof_visio-0.0.2-py3-none-any.whl.
File metadata
- Download URL: oemof_visio-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4ad18c63eb2fbd9c430b2564c3b9fc34a38599279eba41c435949774029a1fa
|
|
| MD5 |
e23397a89c43cc7b66df67e9eae33de0
|
|
| BLAKE2b-256 |
1b851696726e7e19ff8d6e33ee1f72cb161f90bddbe035696cf6784e23d1336e
|