Skip to main content

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.

PyPI - Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypsdm-0.0.4.tar.gz (71.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypsdm-0.0.4-py3-none-any.whl (109.8 kB view details)

Uploaded Python 3

File details

Details for the file pypsdm-0.0.4.tar.gz.

File metadata

  • Download URL: pypsdm-0.0.4.tar.gz
  • Upload date:
  • Size: 71.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.6 Windows/10

File hashes

Hashes for pypsdm-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c688cf9a44cbba0aaca9eceeb5d327e0b9dac56669ef8e3f85e4434c66201573
MD5 94fbf8e2252b7d2eca6136c91b9ec043
BLAKE2b-256 2422e1c0e0817f3a68ef0482e39c9c2e231fa17ca7130ac56f1c7f9615a18d76

See more details on using hashes here.

File details

Details for the file pypsdm-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pypsdm-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 109.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.6 Windows/10

File hashes

Hashes for pypsdm-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1aed4623b6408206390ba503d46ec504708dd2d177dafe8ea53a23c4ed6afbe0
MD5 4c54b65fe9ead22ecad72b75e94633ac
BLAKE2b-256 2150bbefbf9ffeb78e1f943c3f5f56874ab88898c5c2ee1e322ff892b3a3c761

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page