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 static var compensator #201

Merged
merged 7 commits into from
Apr 20, 2023
Merged

Add static var compensator #201

merged 7 commits into from
Apr 20, 2023

Conversation

Lisrte
Copy link
Contributor

@Lisrte Lisrte commented Apr 14, 2023

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)

@Lisrte Lisrte requested a review from flo-dup April 14, 2023 14:31
@Lisrte Lisrte self-assigned this Apr 14, 2023
@Lisrte Lisrte changed the base branch from main to check_static_models April 14, 2023 14:31
@Lisrte Lisrte force-pushed the check_static_models branch 2 times, most recently from c6949e6 to 70213c4 Compare April 19, 2023 08:34
Base automatically changed from check_static_models to main April 19, 2023 13:28
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@@ -91,7 +93,8 @@ private static Stream<Arguments> provideEquipmentModelData() {
Arguments.of("genFictitious", GeneratorFictitious.class, EurostagTutorialExample1Factory.create(), "GEN", "BBM_GEN", "GF", "GeneratorFictitious"),
Arguments.of("gen", GeneratorSynchronous.class, EurostagTutorialExample1Factory.create(), "GEN", "BBM_GEN", "GSFWPR", "GeneratorSynchronousFourWindingsProportionalRegulations"),
Arguments.of("omegaGen", OmegaRefGenerator.class, EurostagTutorialExample1Factory.create(), "GEN", "BBM_GEN", "GPQ", "GeneratorPQ"),
Arguments.of("transformer", TransformerFixedRatio.class, EurostagTutorialExample1Factory.create(), "NGEN_NHV1", "BBM_NGEN_NHV1", "TFR", "TransformerFixedRatio")
Arguments.of("transformer", TransformerFixedRatio.class, EurostagTutorialExample1Factory.create(), "NGEN_NHV1", "BBM_NGEN_NHV1", "TFR", "TransformerFixedRatio"),
Arguments.of("svc", StaticVarCompensatorModel.class, SvcTestCaseFactory.create(), "SVC2", "BBM_SVC", "svc", "StaticVarCompensatorPV")
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a comment, which is not related to current PR, thus this should not be addressed here. As the name of the file is deduced in AbstractModelSupplierTest::getResourceAsStream the ctrl+click is not working in the IDE to navigate to the groovy file. Having "/dynamicModel/svc.groovy" instead of "svc" would be more convenient.

@@ -48,7 +50,7 @@ class DynamicModelsSupplierTest extends AbstractModelSupplierTest {

@Test
void testGroovyExtensionCount() {
assertEquals(10, EXTENSIONS.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we keep that unit test?

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@sonarcloud
Copy link

sonarcloud bot commented Apr 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit 52e6f81 into main Apr 20, 2023
6 checks passed
@flo-dup flo-dup deleted the add_static_var_compensator branch April 20, 2023 07:49
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.

None yet

2 participants