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.1.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.1-py3-none-any.whl (137.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cosim_toolbox-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b093f277ff1dc1cdcbfebdad5d39e71c8e56ae3ae05e93495a4a4005a49fa622
MD5 4c29f04e208bbc39298335cdabea576f
BLAKE2b-256 d4bad52fb19aa1e3e5ae2fd34ccdb2561a88962adebf62aec3e10adadb1eadd1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cosim_toolbox-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d22bd5b9a4736cc58cacc94513b314dd80c0d29674f1274c3f0f848665845cac
MD5 2bbc0e67e072ff3c5d0a6d5d973e5260
BLAKE2b-256 6d48f9870226b6a91e93d0c4f06359bcfdeef3ac4727f5e97db58dedae7b5369

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