PyPSATopo is a tool that allows generating the topographical representation of any arbitrary PyPSA-based network
Project description
PyPSATopo is a tool that allows generating the topographical representation of any arbitrary PyPSA-based network (thanks to the DOT language). Besides easing the understanding of a network by providing its graphical representation, the tool helps debug it given that broken links and missing buses are shown in (slightly) different shapes and colors. Technically speaking, PyPSATopo can be thought of as a reverse engineering tool for PyPSA-based networks.
To get a quick overview of the capabilities of PyPSATopo, simply launch it in a terminal as follows:
python pypsatopo.py
This will create a PyPSA-based network made of the following components:
# create dummy (PyPSA-based) network
network = pypsa.Network(name = "My Dummy Network")
# add some dummy components to dummy network
network.add("Bus", "electricity")
network.add("Bus", "hydrogen")
network.add("Generator", "wind", bus = "electricity")
network.add("Generator", "solar", bus = "electricity")
network.add("Load", "transport", bus = "electricity")
network.add("Load", "industry", bus = "hydrogen")
network.add("Store", "battery", bus = "electricity")
network.add("StorageUnit", "hydro", bus = "electricity")
network.add("Link", "electrolysis", bus0 = "electricity", bus1 = "hydrogen")
... as well as generate the corresponding topographical representation of the network in the SVG format:
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 pypsatopo-1.1.2.tar.gz.
File metadata
- Download URL: pypsatopo-1.1.2.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
189ad4e482664c8306697a7ac2945277cef7ddee6c524fd16a3806351efdc09e
|
|
| MD5 |
3f053431af5c1022a4a9fd8a3b88bf04
|
|
| BLAKE2b-256 |
2a76430f336c0773a18e82a743ef36ade45b4a22d8ec4537244fae1e62b4ccc4
|
File details
Details for the file pypsatopo-1.1.2-py3-none-any.whl.
File metadata
- Download URL: pypsatopo-1.1.2-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1df87a20b8993767a9ae440428cc4f9768ee4a875a6153dd0112f0985c8a696
|
|
| MD5 |
986e7e23f3789cf30a510effbdd4a92b
|
|
| BLAKE2b-256 |
2aded1089fd1770e0a2e4c3288abdaef2cd84e32f543255eafeaa872ad43cc71
|