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", "oil")
network.add("Bus", "electricity")
network.add("Bus", "transport")
network.add("Generator", "oil", bus = "oil")
network.add("Generator", "solar", bus = "electricity")
network.add("Load", "vehicle", bus = "transport")
network.add("Store", "battery", bus = "electricity")
network.add("StorageUnit", "hydro", bus = "electricity")
network.add("Link", "ICEV", bus0 = "oil", bus1 = "transport")
network.add("Link", "BEV", bus0 = "electricity", bus1 = "transport")
... as well as generate the corresponding topographical representation of the network in the SVG format:
Project details
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
File details
Details for the file pypsatopo-1.0.3.tar.gz
.
File metadata
- Download URL: pypsatopo-1.0.3.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a16e7238f10b3e370b708e0f2ccf03278d04b0c98b2e3e6cba2bd00d46e7dfc |
|
MD5 | 0ddba9b2cf5ad62848bcb9b3c4859165 |
|
BLAKE2b-256 | ddc7e23c4a450cf7635966549b4ff32dcf53c0508943c70eb039a4982a2d5d71 |
File details
Details for the file pypsatopo-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: pypsatopo-1.0.3-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 475895af62624c6b80839fe7485d0aed72c7213257602286a2aaca90c99f6fe3 |
|
MD5 | 7625a687c66a8cd3219f3a16501e6ab8 |
|
BLAKE2b-256 | a5c93b4580eac0931950e648ff7b2ac0e6ff73b28a9e06f420853a8013a76be4 |