CIMHub DistOPF Library
Project description
cimhub_distopf
Converter between DistOPF (Distributed Optimal Power Flow) and CIM (IEC 61968/61970).
DistOPF is a distribution-level OPF solver that uses a linearized power flow formulation. This package imports DistOPF case data into CIM and exports CIM models to the DistOPF format.
Usage
DistOPF to CIM (Import)
import os
os.environ['CIMG_USE_UNITS'] = 'TRUE'
os.environ['CIMG_CIM_PROFILE'] = 'cimhub_2026'
from cimhub_distopf.importer.distopf_to_cim import distopf_to_cim
network = distopf_to_cim("/path/to/case/")
CIM to DistOPF (Export)
from cimhub_distopf.exporter.cim_to_distopf import cim_to_distopf
cim_to_distopf(network, "/path/to/output/")
Architecture
LinkML YAML → distopf_schema.py → GraphModel → DistopfReader / DistopfWriter
↕
DistopfImporter / DistopfExporter
Running Tests
uv run pytest cimhub_distopf/tests/ -v
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_distopf-2.0.0a0.tar.gz.
File metadata
- Download URL: cimhub_distopf-2.0.0a0.tar.gz
- Upload date:
- Size: 53.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d4ad36fe48293950762a5c49fac265998fd1630797bfef1b11dd1e34e4b77b0
|
|
| MD5 |
dad3c2f27638713c5d9a67dcdaccc9a9
|
|
| BLAKE2b-256 |
a627cbc08bf7a1e53941a58bd4668328019d2404117cbf309723fd77a8fe257d
|
Provenance
The following attestation bundles were made for cimhub_distopf-2.0.0a0.tar.gz:
Publisher:
publish-cimhub-distopf.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_distopf-2.0.0a0.tar.gz -
Subject digest:
3d4ad36fe48293950762a5c49fac265998fd1630797bfef1b11dd1e34e4b77b0 - Sigstore transparency entry: 2187829846
- Sigstore integration time:
-
Permalink:
PNNL-CIM-Tools/CIMHub@1b95064dc99593fb9cdcab0ea3d4dabf2bf9f00b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/PNNL-CIM-Tools
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cimhub-distopf.yml@1b95064dc99593fb9cdcab0ea3d4dabf2bf9f00b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file cimhub_distopf-2.0.0a0-py3-none-any.whl.
File metadata
- Download URL: cimhub_distopf-2.0.0a0-py3-none-any.whl
- Upload date:
- Size: 49.0 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 |
0ebfbfae863f20c81adeb763cb217273c913dc495747ff62036d9b4943487e66
|
|
| MD5 |
58277e04ddcf2eea35be060a9df5b211
|
|
| BLAKE2b-256 |
e6cde85c0470824c454f645d64c702b3f23fefba6861516be9df9a18197d5404
|
Provenance
The following attestation bundles were made for cimhub_distopf-2.0.0a0-py3-none-any.whl:
Publisher:
publish-cimhub-distopf.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_distopf-2.0.0a0-py3-none-any.whl -
Subject digest:
0ebfbfae863f20c81adeb763cb217273c913dc495747ff62036d9b4943487e66 - Sigstore transparency entry: 2187829854
- Sigstore integration time:
-
Permalink:
PNNL-CIM-Tools/CIMHub@1b95064dc99593fb9cdcab0ea3d4dabf2bf9f00b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/PNNL-CIM-Tools
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cimhub-distopf.yml@1b95064dc99593fb9cdcab0ea3d4dabf2bf9f00b -
Trigger Event:
workflow_dispatch
-
Statement type: