Commit ce319181 authored by Jan Dinkelbach's avatar Jan Dinkelbach
Browse files


parent 7f1d437b
Pipeline #301553 passed with stages
in 1 minute and 27 seconds
......@@ -6,72 +6,10 @@ The processing of grid data is based on CIM compatible Python classes. The codeb
The focus of CIMpy is on the support of the Common Grid Model Exchange Standard (CGMES) specified by the European Network of Transmission System Operators for Electricity (ENTSO-E). However, the CIMpy package can readily support further as well as new CIM versions if required.
## Documentation
Python package for import, modification and export of grid data in the format of XML/RDF documents based on the Common Information Model (CIM).
## Installation
To install the package in development mode, run:
$ git clone
$ cd cimpy
$ python develop
To uninstall the package:
$ python develop --uninstall
The package can be installed on user level only:
$ python develop --user
## Usage
### CIM Import
Function for creating CIMpy objects out of a CIM topology.
cimpy.cim_import(xml_files, cgmes_version, start_dict=None)
xml_files: List of CIM RDF/XML files
cgmes_version: String containing the CGMES version
Optional Arguments:
start_dict: List of CIM classes which should be read, default: read all classes
import_result: A dictionary containing the topology and meta information. The topology can be extracted via
import_result['topology']. The topology dictionary contains all objects accessible via their mRID. The meta
information can be extracted via import_result['meta_info']. The meta_info dictionary contains a new dictionary with
the keys: 'author', 'namespaces' and 'urls'. The last two are also dictionaries. 'urls' contains a mapping
between references to URLs and the extracted value of the URL, e.g. 'absoluteValue':
'' These mappings are accessible
via the name of the attribute, e.g. import_result['meta_info']['urls'}[attr_name] = {mapping like example above}.
'namespaces' is a dictionary containing all RDF namespaces used in the imported xml files.
[Example for CIM Import](
### CIM Export
Function for serialization of CIMpy objects to XML files.
cimpy.cim_export(import_result, file_name, version, activeProfileList):
import_result: A dictionary containing the topology and meta information. For more information see the documentation for cim_import.
file_name: String containing the name for the XML files.
version: String containing the CGMES version
activeProfileList: A list containing all profiles which are active for the export.
One XML file for each package in the CGMES version. The package name is added to the file name like [file_name]_[package].xml
[Example for CIM Export](
## Copyright
2019, Institute for Automation of Complex Power Systems, EONERC, RWTH Aachen University
CIMpy's documentation is hosted [here](
The documentation provides instructions on CIMpy's installation, getting started examples and the possibility to browse through the supported CIM class codebases.
## License
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment