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

Update Network with DynaFlow results #77

Merged
merged 10 commits into from
Apr 12, 2021
Merged

Conversation

guillemjane-AIA
Copy link
Contributor

@guillemjane-AIA guillemjane-AIA commented Apr 6, 2021

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • 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)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature

What is the current behavior? (You can also link to an open issue here)
Updating results from DynaFlow not present

What is the new behavior (if this is a feature change)?
Added Update network with results coming from DynaFlow.

guillemjane-AIA and others added 8 commits April 1, 2021 15:03
… in dependencies.

Signed-off-by: janeg <janeg@aia.es>
Signed-off-by: janeg <janeg@aia.es>
Signed-off-by: janeg <janeg@aia.es>
Signed-off-by: Luma <zamarrenolm@aia.es>

# Conflicts:
#	dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowProvider.java
#	dynaflow/src/test/java/com/powsybl/dynaflow/DynaFlowProviderTest.java
Signed-off-by: Luma <zamarrenolm@aia.es>
@zamarrenolm zamarrenolm changed the title Test update iidm dynaflow Update Network with DynaFlow results Apr 7, 2021
Signed-off-by: Luma <zamarrenolm@aia.es>
dynaflow/pom.xml Outdated
@@ -47,6 +38,11 @@
<groupId>com.powsybl</groupId>
<artifactId>powsybl-time-series-api</artifactId>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be ${project.groupId} as powsybl-dynawo-commons is part of this repository

Copy link
Member

Choose a reason for hiding this comment

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

fixed

@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, RTE (http://www.rte-france.com)
* Copyright (c) 2021, RTE (http://www.rte-france.com)
Copy link
Contributor

Choose a reason for hiding this comment

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

The copyright date should be unchanged: this year defines the beginning of the copyright

Copy link
Member

Choose a reason for hiding this comment

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

fixed

@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020, RTE (http://www.rte-france.com)
* Copyright (c) 2021, RTE (http://www.rte-france.com)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same remark here

Copy link
Member

Choose a reason for hiding this comment

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

fixed

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

/**
* @author Guillaume Pernin <guillaume.pernin at rte-france.com>
*/
public class DynaFlowProviderTest {
public class DynaFlowProviderTest extends AbstractConverterTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

As we inherit from AbstractConverterTest, this class should be cleaned up: the base class provides a filesystem you should use instead of creating a new one to avoid misunderstanding behaviour

Copy link
Member

Choose a reason for hiding this comment

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

removed local filesystem instance

Comment on lines 87 to 89
private final String outPutIIDM;

public LocalCommandExecutorMock(String stdoutFileRef) {
public LocalCommandExecutorMock(String stdoutFileRef, String outPutIIDM) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should write outputIidm to follow the coding style.

Copy link
Member

Choose a reason for hiding this comment

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

fixed following case convention

Signed-off-by: Luma <zamarrenolm@aia.es>
@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2021

Kudos, SonarCloud 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

@zamarrenolm zamarrenolm merged commit 7e0255c into master Apr 12, 2021
@zamarrenolm zamarrenolm deleted the test_update_iidm_dynaflow branch April 12, 2021 12:42
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

4 participants