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

Geographical coordinates used as layout #592

Merged
merged 22 commits into from
Apr 5, 2024
Merged

Geographical coordinates used as layout #592

merged 22 commits into from
Apr 5, 2024

Conversation

So-Fras
Copy link
Member

@So-Fras So-Fras commented Mar 5, 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?
#435

Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
@So-Fras So-Fras added the NAD label Mar 5, 2024
@So-Fras So-Fras self-assigned this Mar 5, 2024
So-Fras and others added 5 commits March 19, 2024 10:00
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
@So-Fras So-Fras changed the title [WIP] Geographical coordinates used as layout Geographical coordinates used as layout Mar 26, 2024
@So-Fras So-Fras marked this pull request as ready for review March 26, 2024 20:58
So-Fras and others added 2 commits April 2, 2024 22:55
Signed-off-by: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
@So-Fras So-Fras force-pushed the geographical_layout branch from add7085 to 4d812b3 Compare April 2, 2024 21:19
So-Fras and others added 9 commits April 3, 2024 10:45
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
diagram-test/pom.xml Outdated Show resolved Hide resolved
@@ -1706,6 +1708,16 @@ public static Network createNetworkWithBatteries() {
return network;
}

public static Network createIeee9NetworkWithOneMissingSubstationPosition() {
Network network = IeeeCdfNetworkFactory.create9();
new SubstationPositionAdderImplProvider().newAdder(network.getSubstation("S1")).withCoordinate(new Coordinate(2d, 3d)).add();
Copy link
Contributor

Choose a reason for hiding this comment

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

Getting the adder for an extension is done that way: substation.newExtension(SubstationPosition.class), which allows you not to be implementation-specific

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed! It seems to work with substation.newExtension(SubstationPositionAdder.class)

So-Fras added 3 commits April 4, 2024 16:45
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
Signed-off-by: Sophie Frasnedo <sophie.frasnedo@rte-france.com>
@So-Fras So-Fras requested a review from flo-dup April 4, 2024 21:05
Copy link

sonarqubecloud bot commented Apr 5, 2024

@So-Fras So-Fras merged commit 9865fdf into main Apr 5, 2024
6 checks passed
@So-Fras So-Fras deleted the geographical_layout branch April 5, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants