Skip to content

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.

The idea in four lines

  • Load a model into cim-graph: cimtables.load_model for .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 None means CIM leaves it unset; an exception means the model cannot be read as asked.