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

[CGMES GL] Add SubstationPosition extension when location on voltage levels #3159

Merged
merged 7 commits into from
Sep 27, 2024

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented Sep 25, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
feature

What is the current behavior?
In CGMES GL import, only locations on substations PowerSystemResource are supported

What is the new behavior (if this is a feature change)?
In CGMES GL import, locations on substations and voltage levels PowerSystemResource are supported

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Other information:

  • When several voltage level locations inside the same substation, the average latitude and longitude is computed
  • When voltage level location inside a substation with location, the voltage level location is dismissed

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
public PropertyBags getSubstationsPosition() {
LOG.info("Querying triple store for substations positions");
return queryTripleStore(SUBSTASTION_POSITION_QUERY_KEY);
public PropertyBags getSubstationsVoltageLevelsPosition() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public PropertyBags getSubstationsVoltageLevelsPosition() {
public PropertyBags getSubstationVoltageLevelPosition() {

Copy link
Contributor Author

@flo-dup flo-dup Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getSubstationVoltageLevelPositions() (one query for all positions)

flo-dup and others added 3 commits September 26, 2024 23:20
Co-authored-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Signed-off-by: Florian Dupuy <66690739+flo-dup@users.noreply.github.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Olivier Perrin <olivier.perrin@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Copy link

@flo-dup flo-dup merged commit d8ccc84 into main Sep 27, 2024
7 checks passed
@flo-dup flo-dup deleted the voltageLevelsPosition branch September 27, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants