-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Signed-off-by: janeg <janeg@aia.es>
… 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: 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>
dynaflow/src/main/java/com/powsybl/dynaflow/DynaFlowProvider.java
Outdated
Show resolved
Hide resolved
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> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same remark here
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed local filesystem instance
private final String outPutIIDM; | ||
|
||
public LocalCommandExecutorMock(String stdoutFileRef) { | ||
public LocalCommandExecutorMock(String stdoutFileRef, String outPutIIDM) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
Kudos, SonarCloud Quality Gate passed! |
Please check if the PR fulfills these requirements (please use
'[x]'
to check the checkboxes, or submit the PR and then click the checkboxes)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.