-
Notifications
You must be signed in to change notification settings - Fork 2
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
Flow decomposition observers #132
Conversation
41d92df
to
c148d9a
Compare
Hello @phiedw , Anne told me that you were probably the right person to ask a review from. |
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.
Thank you for this PR !
Could you add some documentation please ? A few lines might be enough to give the general idea of your contribution in the powsybl.github.io repository. The main "flow decomposition" document page is here.
flow-decomposition/src/main/java/com/powsybl/flow_decomposition/FlowDecompositionObserver.java
Show resolved
Hide resolved
flow-decomposition/src/main/java/com/powsybl/flow_decomposition/FlowDecompositionObserver.java
Show resolved
Hide resolved
...ecomposition/src/main/java/com/powsybl/flow_decomposition/FlowDecompositionObserverList.java
Show resolved
Hide resolved
...ecomposition/src/main/java/com/powsybl/flow_decomposition/FlowDecompositionObserverList.java
Show resolved
Hide resolved
...ecomposition/src/test/java/com/powsybl/flow_decomposition/FlowDecompositionObserverTest.java
Show resolved
Hide resolved
...ecomposition/src/test/java/com/powsybl/flow_decomposition/FlowDecompositionObserverTest.java
Show resolved
Hide resolved
...ecomposition/src/test/java/com/powsybl/flow_decomposition/FlowDecompositionObserverTest.java
Outdated
Show resolved
Hide resolved
flow-decomposition/src/main/java/com/powsybl/flow_decomposition/FlowDecompositionComputer.java
Show resolved
Hide resolved
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
6a53cae
to
8c77df2
Compare
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
8c77df2
to
6e6b05a
Compare
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Done, Please see powsybl/powsybl.github.io@49290bc |
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.
ty
Thank you for this documentation ! |
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.
Thank you for these corrections !
flow-decomposition/src/main/java/com/powsybl/flow_decomposition/FlowDecompositionComputer.java
Show resolved
Hide resolved
Signed-off-by: Guillaume Verger <guillaume.verger@artelys.com>
fc66424
to
3a79e87
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No
What kind of change does this PR introduce?
This PR adds an Observer to the flow decomposition computation.
It is possible to attach an observer to be notified of computed matrices during the computation.
This helps building reports to understand the final results of such a computation.
What is the current behavior?
The flow decomposition is opaque.
What is the new behavior (if this is a feature change)?
The intermediate results of the algorithm are sent to the observers.
Does this PR introduce a breaking change or deprecate an API?
Other information:
I made sure having no observer (the default production behavior) would not be crippled by this new feature, especially because we need to transform the sparse matrices (internal model) to Maps. The current implementation would not convert these matrices in case there is no observer.