Skip to content
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

Add generation of CGMES profile class #39

Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adapt pytests
Signed-off-by: Thomas Günther <[email protected]>
tom-hg57 committed Aug 13, 2024
commit 0ba7ac11b7d04b3c7e1360ec11064a57a9f6ba70
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -3,12 +3,12 @@
__pycache__
.idea
.venv
./cimpy/__pycache__
*.egg
build/
dist/

*.log
/.pytest_cache
/report.xml

# VSCode
.vscode/*
2 changes: 1 addition & 1 deletion cimpy/examples/export_cigre_mv.py
Original file line number Diff line number Diff line change
@@ -20,6 +20,6 @@

import_result = cimpy.cim_import(xml_files, "cgmes_v2_4_15")

active_profile_list = ["DL", "EQ", "SV", "TP"]
active_profile_list = ["DL", "EQ", "SSH", "SV", "TP"]

cimpy.cim_export(import_result, "CIGREMV_reference_cgmes_v2_4_15", "cgmes_v2_4_15", active_profile_list)
Binary file modified tests/CIGREMV_import_reference_cgmes_v2_4_15.p
Binary file not shown.
2,106 changes: 1,053 additions & 1,053 deletions tests/CIGREMV_reference_cgmes_v2_4_15_DiagramLayout.xml

Large diffs are not rendered by default.

2,134 changes: 1,068 additions & 1,066 deletions tests/CIGREMV_reference_cgmes_v2_4_15_Equipment.xml

Large diffs are not rendered by default.

542 changes: 271 additions & 271 deletions tests/CIGREMV_reference_cgmes_v2_4_15_StateVariables.xml

Large diffs are not rendered by default.

152 changes: 152 additions & 0 deletions tests/CIGREMV_reference_cgmes_v2_4_15_SteadyStateHypothesis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cim="http://iec.ch/TC57/2012/CIM-schema-cim16#" xmlns:md="http://iec.ch/TC57/61970-552/ModelDescription/1#" xmlns:entsoe="http://entsoe.eu/Secretariat/ProfileExtension/2#" xmlns:neplan="http://www.neplan.ch#" >
<md:FullModel rdf:about="CIGREMV_reference_cgmes_v2_4_15">
<md:Model.created>12/08/2024 16:34:44</md:Model.created>
<md:Model.modelingAuthoritySet>www.sogno.energy</md:Model.modelingAuthoritySet>
<md:Model.profile>http://entsoe.eu/CIM/SteadyStateHypothesis/1/1</md:Model.profile>
</md:FullModel>
<cim:Terminal rdf:about="#E-288">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-328">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-337">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-346">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-354">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-366">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-374">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-382">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-109">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-398">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-395">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-1229789158">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-213">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-222">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-231">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-252">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-261">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-270">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:ExternalNetworkInjection rdf:about="#HV-Netz">
<cim:ExternalNetworkInjection.referencePriority>1</cim:ExternalNetworkInjection.referencePriority>
</cim:ExternalNetworkInjection>
<cim:Terminal rdf:about="#E-67">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-301">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-302">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-309">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-310">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-116">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-117">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-124">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-125">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-132">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-133">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-149">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-150">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-165">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-166">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-180">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-181">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-185">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-186">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-193">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-194">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-198">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-199">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-203">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-204">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-70">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-86">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-80">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
<cim:Terminal rdf:about="#E-294">
<cim:ACDCTerminal.connected>True</cim:ACDCTerminal.connected>
</cim:Terminal>
</rdf:RDF>
Loading