-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code generation flow #26
Comments
My current understanding of the workflow looks like this:
|
The ECore models are generated using a modified version of CIMTool: https://github.com/rwl/CIMTool The IEC61968 and IEC62325 packages would be deleted in Enterprise Architect and the remaining packages exported according to the instructions here: http://wiki.cimtool.org/Using_CIMTool_with_Enterprise_Architect.html The code is then generated using a project called Enerate: http://rwl.github.io/enerate/ It takes an ECore model and generates code using JET templates: www.eclipse.org/emft/projects/jet/ You have to add an annotation to the base package in the ECore model so the code generator knows where to start. Here are some of my old projects that include ECore models that once worked I am thinking of marking PyCIM as deprecated. It is simpler to just read the RDF/XML into a DOM tree and use XPath to extract the data as required. Here is a Python 3 script that demonstrates how to extract the lat/lng coordinates from a snippet of a GeographicalLocation model: |
Dear Mr. Lincoln,
We are currently considering to use your PyCIM project to perform load flow analysis with PYPOWER / PyPSA of CIM models.
However, we face a little problem. Our CIM models are based on the latest version 16 of the CIM standard.
In section 6.2.6 of the book “The Common Information Model CIM” by Mathiuas Uslar, the code generation flow used for PyCIM is described.
Could you provide us some details about this flow? In particular, the JET templates for Enerate are missing?
Thank you very much
The text was updated successfully, but these errors were encountered: