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 #35

Merged

Conversation

tom-hg57
Copy link
Collaborator

@tom-hg57 tom-hg57 commented Aug 11, 2024

  • Add generation of CGMESProfile class (including profile URIs) for python
  • Improve generation of CGMESProfile class for javascript
  • Add cim namespace to the generated CGMESProfile class
  • Add method Profile.uris() to CGMESProfile.py to get the list of profile URIs
  • Add recommended class profile to all generated classes (currently only used for python: Add generation of CGMES profile class cimpy#39)

@stv0g stv0g changed the title Add generation of cgmes profile class Add generation of CGMES profile class Aug 13, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
7.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@tom-hg57
Copy link
Collaborator Author

Ready for review.

@m-mirz
Copy link
Contributor

m-mirz commented Sep 21, 2024

@tom-hg57 Thanks! Can you please add some context in the PR description?

@m-mirz m-mirz requested a review from stv0g September 21, 2024 17:46
@stv0g
Copy link
Contributor

stv0g commented Sep 27, 2024

I cant really comment on the details. But overall the code looks fine to me.

@m-mirz m-mirz merged commit 0ef6919 into sogno-platform:master Sep 29, 2024
7 of 8 checks passed
@tom-hg57 tom-hg57 deleted the add-generation-of-CGMESProfile-class branch September 29, 2024 17:29
m-mirz added a commit to sogno-platform/cimpy that referenced this pull request Oct 30, 2024
Depends on cimgen pull request:
sogno-platform/cimgen#35, which is already
merged now.

In my repo all workflows run successfully:
tom-hg57#1 (even deploying of
github-pages).

Improve cimexport.py using profile URIs (from new generated
CGMESProfile.py) in model description of exported cim files
- Update generated python files created by cimgen
- Use profile URIs (from new generated CGMESProfile.py) in model
description of exported cim files
- Fix "Package information not found" for EquipmentBoundary and
ToplogyBoundary in cim_import() by using new generated CGMESProfile.py
- Fix export for data read without profile information
- Improve cim_export (activeProfileList is now optional - no
activeProfileList means output to all profile files with data)
- Add function cim_export_to_string_array
- Fix model ID in cim_export (must be unique across all files)
- Use recommended class profile from new generated classes (if data is
read without profile information, or some objects are added after
import)
- Improve .github/workflows/test.yaml
- Update documentation in cimpy/cimexport.py

With the new generated python files created by cimgen the issue
#23 is solved. PR
#24 could be closed if this
PR is merged.

The same applies to issue
#25 and PR
#26.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants