No project description provided
Project description
pypsdm
pypsdm aims to make power system model analysis a breeze. It is based upon the Power System Data Model (PSDM).
Its main functionalities include:
- parsing grid models and associated result data
- calculation utilities for event discrete time series data
- plotting capabilities for grid and result data
It is currently under development. So if you want to use it, expect it to change quite frequently for now.
Installation
To add the project as dependency run
pip install pypsdm
or
poetry add pypsdm
depending on your depedency management system.
If you want to clone and explore the repository locally, run
poetry install
inside the repository root folder. For more information about poetry, refer to their documentation.
Documentation
Please refer to:
docs/nbs/input_models.ipynb
docs/nbs/result_models.ipynb
docs/nbs/plotting_utilities.ipynb
to see exemplary notebooks outlining some of the basic functionalities.
Quickstart:
You can read grid models via
from pypsdm.models.gwr import GridWithResults
grid_path = "/path/to/my/psdm/grid"
result_path = "/path/to/my/psdm/results"
gwr = GridWithResults.from_csv(grid_path, result_path)
If you only want to read the grid model without the results
# All relevant input models can be imported from `pypsdm/models/input`
from pypsdm.models.input import GridContainer
grid_path = "/path/to/my/psdm/grid"
grid = GridContainer.from_csv(grid_path)
If you only want to read the results without the grid model
# All relevant result models can be imported from `pypsdm/models/result`
from pypsdm.models.results import GridResultContainer
result_path = "/path/to/my/psdm/results"
results = GridResultContainer.from_csv(result_path)
Known Issues
- When adding the project as a dependency the language server of the code editors do not suggest autoimports for all symbols of the project, which means they have to be imported manually. It might have something to do with how poetry publishes the artifacts. If you have an idea what the issue could be any tipps are welcome.
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
File details
Details for the file pypsdm-0.0.3.tar.gz
.
File metadata
- Download URL: pypsdm-0.0.3.tar.gz
- Upload date:
- Size: 73.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0aac3a5313415a2c7deb3358efb00d65b6f2d73639334789fd06bbd5a801398 |
|
MD5 | 02379208b2000ce721bd8e84e2f10956 |
|
BLAKE2b-256 | cdc7bfde584496efd3886194d9eb55d116a566425e2450b41933894126731b56 |
File details
Details for the file pypsdm-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pypsdm-0.0.3-py3-none-any.whl
- Upload date:
- Size: 106.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.4 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66e8529b1ae39778c3a831bb525d1975380d0a54d69c3c6f19be84326082b837 |
|
MD5 | ea1052d29552c13f5796f9154424e2db |
|
BLAKE2b-256 | 37db652bf4e9242abae1fdd3d24fbdd90d8bca7bdb33f87e2e0b2061d909535d |