CIMHub OpenDSS Library
Project description
Cimhub OpenDSS
Bidirectional converter between OpenDSS and CIM (IEC 61968/61970) using the cimhub_2026 profile.
Usage
DSS to CIM (Import)
import os
os.environ['CIMG_USE_UNITS'] = 'TRUE'
os.environ['CIMG_CIM_PROFILE'] = 'cimhub_2026'
from cimhub_opendss.importer.dss_to_cim import dss_to_cim
feeder = dss_to_cim("/path/to/Master.dss")
CIM to DSS (Export)
from cimhub_opendss.exporter.cim_to_dss import cim_to_dss
cim_to_dss(feeder, "/path/to/output_dir")
# Writes Master.dss + per-component .dss files
Roundtrip Validation
A full DSS -> CIM -> DSS roundtrip integration test is provided for the IEEE 13-bus feeder:
uv run python cimhub_opendss/tests/test_ieee13_roundtrip.py
# or via pytest:
uv run pytest cimhub_opendss/tests/test_ieee13_roundtrip.py -vs
The roundtrip parses the IEEE 13-bus DSS model, imports to CIM, exports back to DSS, solves both models with OpenDSS, and compares total power and bus voltages. Current accuracy is within 0.14% on active power (4.4 kW on a 3230 kW system).
Models
Mandatory
- Power Transformer
- Transformers
- Regulator Controls
- Line Code
- Line
- Capacitor
- Load
- PV System
- Storage
- Switch
- Fuse
- Recloser
- Breaker
- Generator
- CNData (importer only)
- TSData (importer only)
- Line Geometry (importer only)
- Line Spacing (importer only)
- Wire Data
- XY Curve
As Needed
- GIC Transformer
- GIC Line
- Induction Machine
- UPFC Device
- Wind Generator
- Capacitor Control
- Inverter Control
- Storage Control
- Switch Control
- UPFC Control
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cimhub_opendss-2.0.0a0.tar.gz.
File metadata
- Download URL: cimhub_opendss-2.0.0a0.tar.gz
- Upload date:
- Size: 308.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
624905504d588cf48efb30be5bb079c4a1877693fac2ecdc847bc8a341df01b7
|
|
| MD5 |
020bcd1d6593a3c8b1dd22baaef4da27
|
|
| BLAKE2b-256 |
b7a67afb33a89288480cc74295c15f20067711edd6b48e7323c95b4ac53f9e62
|
Provenance
The following attestation bundles were made for cimhub_opendss-2.0.0a0.tar.gz:
Publisher:
publish-cimhub-opendss.yml on PNNL-CIM-Tools/CIMHub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cimhub_opendss-2.0.0a0.tar.gz -
Subject digest:
624905504d588cf48efb30be5bb079c4a1877693fac2ecdc847bc8a341df01b7 - Sigstore transparency entry: 2187152099
- Sigstore integration time:
-
Permalink:
PNNL-CIM-Tools/CIMHub@188485877b0fafd71890df4e4682d72ab3d6eb9c -
Branch / Tag:
refs/heads/release - Owner: https://github.com/PNNL-CIM-Tools
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cimhub-opendss.yml@188485877b0fafd71890df4e4682d72ab3d6eb9c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file cimhub_opendss-2.0.0a0-py3-none-any.whl.
File metadata
- Download URL: cimhub_opendss-2.0.0a0-py3-none-any.whl
- Upload date:
- Size: 336.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed4ddf59a54ec5af18270cdb808e521ad06d0c5bec3d2490ae3524c1c8c68bcd
|
|
| MD5 |
022457943aa7bd4e6b3014e28cac032d
|
|
| BLAKE2b-256 |
dc6ae9843fcdc992b06f5fd5f90080048b5d9a4f1590deab98eca06f929f5e93
|
Provenance
The following attestation bundles were made for cimhub_opendss-2.0.0a0-py3-none-any.whl:
Publisher:
publish-cimhub-opendss.yml on PNNL-CIM-Tools/CIMHub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cimhub_opendss-2.0.0a0-py3-none-any.whl -
Subject digest:
ed4ddf59a54ec5af18270cdb808e521ad06d0c5bec3d2490ae3524c1c8c68bcd - Sigstore transparency entry: 2187152107
- Sigstore integration time:
-
Permalink:
PNNL-CIM-Tools/CIMHub@188485877b0fafd71890df4e4682d72ab3d6eb9c -
Branch / Tag:
refs/heads/release - Owner: https://github.com/PNNL-CIM-Tools
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cimhub-opendss.yml@188485877b0fafd71890df4e4682d72ab3d6eb9c -
Trigger Event:
workflow_dispatch
-
Statement type: