Skip to main content

Python support for the CoSimulation Toolbox

Project description

Co-Simulation Toolbox to push advances in the field.

Installation

cosim_toolbox can be installed using pip:

$ pip install cosim_toolbox

However, in order to be useful, cosim_toolbox needs custom versions of GridLAB-D and other federates that work with HELICS. It also requires Python 3.10 or later, with HELICS, NumPy, MongoDB, Pandas, and Psycopg. There is reposistory of the complete Co-Simulation for Windows, Linux and Mac OS X on GitHub. A Docker version is also available for users.

Development Work Flow for cosim_toolbox

  • From this directory, ‘pip install -e .’ points Python to this cloned repository for any calls to cosim_toolbox functions

  • See the https://github.com/pnnl/cst for a roadmap of existing Python source files, and some documentation. Any changes or additions to the code need to be made in this directory.

  • Run tests from any other directory on this computer

  • When ready, edit the cosim_toolbox version number and dependencies in setup.py

  • To deploy follow the instructions in the Python Packaging Guide:
    1. Create an account on PyPI if you haven’t yet.

    2. Install twine and build: pip install twine build

    3. Create the source distribution, change to ‘src’ directory execute: python3 -m build .

    4. Check your distribution files for errors: twine check dist/*

    5. (Optional) Upload to the PyPI test server first (note: separate user registration required): twine upload –repository-url https://test.pypi.org/legacy/ dist/*

    6. Upload to PyPI: twine upload dist/*

  • Any user gets the changes with ‘pip install cosim_toolbox –upgrade’

  • Use ‘pip show cosim_toolbox’ to verify the version and location on your computer

Using Co-Simulation Toolbox

This is a developer’s platform for electric power grid research. See http://cosimtoolbox.readthedocs.io/en/latest/ for user instructions, and https://[github]/copper for source code.

Subdirectories

  • cosim_toolbox; utilities for building and running co-simulations using HELICS federates.

  • test; scripts that support testing the package; not automated.

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

cosim_toolbox-1.0.0.tar.gz (72.7 kB view details)

Uploaded Source

Built Distribution

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

cosim_toolbox-1.0.0-py3-none-any.whl (137.9 kB view details)

Uploaded Python 3

File details

Details for the file cosim_toolbox-1.0.0.tar.gz.

File metadata

  • Download URL: cosim_toolbox-1.0.0.tar.gz
  • Upload date:
  • Size: 72.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for cosim_toolbox-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a6f61400d5e04bd03648a428b6267d88b69a5caa1e7528bc59266d268a692d1c
MD5 aedf7b8c34700644758d292e4751b68a
BLAKE2b-256 dc9107caf824048cd2ef0a359d3d0a2cf352a57ed6915b5091e14143f7c070cf

See more details on using hashes here.

File details

Details for the file cosim_toolbox-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cosim_toolbox-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 137.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for cosim_toolbox-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a6b7241ad24ba234760288a1f29cae72441e62105c19f14f6bb033cbdb25834
MD5 61b0df2893437a0b18d328e5f3b813d5
BLAKE2b-256 a0f5b4ce8058af209648e924e72dfd4fdd3b72603c15c67e0ae0ddef77eafdc7

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