User guide¶
This guide is for reading a CIM model from Python with the getters in cimhub_core.getters. The model can come
from CIM XML or from .cimtbl. To write a converter, start with the developer docs.
-
Getting started
Installation and a quick start notebook that loads a small feeder and reads its line, transformer, loads and terminals.
-
Reading CIM
Using the getters: units, NamedTuples,
None, errors and the arguments that carry a decision. Units, bases and signs covers per-unit, percent and generator sign. -
Time series
Time series and schedules: the Parquet files beside the CIM XML, and how load groups and device schedules are read.
-
Getter reference
Every getter by concept: lines, transformers, loads, DER and topology.
The idea in four lines¶
- Load a model into cim-graph:
cimtables.load_modelfor.cimtbl, or cim-graph's own reader for CIM XML. - Pass the CIM object to a getter:
get_phase_loads(load, 'kW', 'kVAr'). - Name the unit. CIM holds SI; the getter converts once.
- Read the result by field name. A
Nonemeans CIM leaves it unset; an exception means the model cannot be read as asked.