Skip to main content

Module ravens

Module ravens 

Source
Expand description

MG-RAVENS, the LANL CIM-derived microgrid interchange schema: one JSON document of name-keyed hash tables nested under the CIM class hierarchy. Its two profiles share the token and the top level shape and differ in the classes they use, so the profile follows the content.

Enums§

Profile
The profile a document’s classes select.

Constants§

BALANCED_MARKERS
Classes only the balanced profile uses: the MATPOWER converter’s settings record, polynomial costs, and two-end transformers.
MULTICONDUCTOR_MARKERS
Classes only the multiconductor profile uses: per-phase equipment, transformer tanks, per-length impedance matrices, and wire catalogs.
NAMESPACE
The namespace both profiles derive deterministic mRIDs under.
TOKEN
The format token both profiles share.

Functions§

detect_profile
The profile of MG-RAVENS JSON text, from decoded Ravens.cimObjectType values and the schema’s class containers. Object names and ordinary string properties do not select a profile. Malformed or excessively nested JSON defaults to the balanced route, whose reader reports the JSON error; the decoder keeps its depth limit.