This release is a pre-release and may not be stable for production use.
cimhub-raw
PSS/E RAW v34 importer for CIMHub: RAW cases to CIM (cim18v17). Raw34Reader parses a case into native records.
RawImporter maps them to .cimtbl text (one file per RAW table, values copied verbatim in the case's units),
and cimtables builds the CIM model from that text. Raw34Writer writes native records back to a .raw file.
There is no CIM to RAW exporter yet.
pip install --pre cimhub-raw # also installs cimhub-core
Python 3.11 or later. Version 2.1 is in alpha.
Quickstart
import cimprofiles.cim18.cim18v17 as cim
from cimhub_raw.importer.raw_to_cimtbl import raw_to_cim
from cimhub_raw.raw34_reader import Raw34Reader
from cimhub_raw.raw34_writer import Raw34Writer
# IEEE_14_bus.raw: cimhub_raw/tests/cases/IEEE14/ in the repository
model = Raw34Reader("IEEE_14_bus.raw").read_all()
network = raw_to_cim(model, name="IEEE14", artifact_dir="ieee14_cimtbl")
print(len(network.graph[cim.TopologicalNode]), "buses") # 14 buses
Raw34Writer().write(model, "ieee14_copy.raw")
raw_to_cim(model, *, name, authority=..., network=None, artifact_dir=None) returns the CIM network. Without
artifact_dir the .cimtbl files go to a temporary directory. name is the model name and the master file stem.
What is supported
| RAW data | Import |
|---|---|
| Case identification, system-wide data, zones, areas, interarea transfers, owners | yes (owners are untranscribed: CIM has no home for them) |
| Buses, substations and node-breaker data (nodes, switching devices, equipment terminals) | yes |
| Branches, system switching devices, multi-section lines | yes |
| Loads, fixed shunts, switched shunts | yes |
| Generators (including renewable models and implicit step-up transformers) | yes |
| Two- and three-winding transformers, phase shifters, impedance correction tables | yes |
| Two-terminal DC lines, VSC DC lines, FACTS devices | yes |
| Multi-terminal DC lines, GNE devices, induction machines | raise NotImplementedError when the case has any |
Raw34Writer raises for a section of those phase-2 record types. Blank or missing fields take the schema's default
and are listed on the row comment (# defaulted: ...).
The repository carries three public cases: IEEE 14 bus, IEEE 118 bus (with four node-breaker substations) and the WECC 240 bus case. Other cases are not distributed.
Documentation
BSD 3-Clause. Source and issues: https://github.com/PNNL-CIM-Tools/CIMHub.
License and attribution
BSD 3-Clause. See LICENSE. Contributors are listed in AUTHORS.
This software was created under a project sponsored by the U.S. Department of Energy's Office of Electricity, an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.
PACIFIC NORTHWEST NATIONAL LABORATORY
operated by BATTELLE
for the UNITED STATES DEPARTMENT OF ENERGY
under Contract DE-AC05-76RL01830
Metadata
Release files for cimhub_raw 2.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cimhub_raw-2.1.0a1.tar.gz | 187.1 kB | Without provenance | Details for cimhub_raw-2.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cimhub_raw-2.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for cimhub_raw-2.1.0a1-py3-none-any.whl |
Total release size: 389.4 kB
Release files / cimhub_raw-2.1.0a1.tar.gz
| Download URL | cimhub_raw-2.1.0a1.tar.gz |
|---|---|
| Size | 187.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4a28e03eb3a3d601619cb6945aa18b7b7e6e129ed5b676af97e130607c7ddaf
|
|
BLAKE2b-256 checksum How to use checksums |
80a6afb9dfe7d2fe20a63b9400c588b056123dd18edd14050132f487a31a0365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / cimhub_raw-2.1.0a1-py3-none-any.whl
| Download URL | cimhub_raw-2.1.0a1-py3-none-any.whl |
|---|---|
| Size | 202.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc4fda1847191e82fbf376a7ede8129a8311172ff636a8f01062b03ee5a6ac65
|
|
BLAKE2b-256 checksum How to use checksums |
1bdc1d9a642e28f948d330a85e1bd30454f5774353e948599baef66a79fd1c1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for cimhub_raw 2.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.