-
Notifications
You must be signed in to change notification settings - Fork 7
Added SystemParticipantWithHeatResult class and modified ChpResult accordingly #269
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
Conversation
I have modified the test cases according to the new code. But, there are some codacy static code analysis issues which I have fixed but they are being shown. And there are several test cases which are failing. |
Regarding the test cases which are failing, I tried running |
!test |
1 similar comment
!test |
Need to add more test cases to test |
…and SystemParticipantWithHeatResult classes
…and SystemParticipantWithHeatResult classes
…ParticipantWithHeatResult classes
Codecov Report
@@ Coverage Diff @@
## dev #269 +/- ##
============================================
- Coverage 78.31% 78.06% -0.25%
- Complexity 1941 1944 +3
============================================
Files 246 247 +1
Lines 7885 7859 -26
Branches 746 748 +2
============================================
- Hits 6175 6135 -40
- Misses 1293 1307 +14
Partials 417 417 Continue to review full report at Codecov.
|
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 your work on this. Please find some remarks below.
Additionally, please let HpResult
also be a child of SystemParticipantWithHeatResult
and remove the qDot
-attribute there. Finally, please adapt the uml documentation for result classes (OutputDataModelConcept.puml) as well as the corresponding section in Sphinx-Documentation (docs/readthedocs/models/result/participant/chp.rst)
src/main/java/edu/ie3/datamodel/models/result/system/ChpResult.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/models/result/system/ChpResult.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/models/result/system/SystemParticipantWithHeatResult.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/models/result/system/SystemParticipantWithHeatResult.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/models/result/system/SystemParticipantWithHeatResult.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/io/factory/result/SystemParticipantResultFactory.java
Show resolved
Hide resolved
src/test/groovy/edu/ie3/datamodel/io/sink/InfluxDbSinkIT.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/edu/ie3/datamodel/models/result/system/ChpResultTest.groovy
Outdated
Show resolved
Hide resolved
src/test/groovy/edu/ie3/test/common/SystemParticipantTestData.groovy
Outdated
Show resolved
Hide resolved
Actually, I have made the suggested changes (except for the changes to the uml and Sphinx documentation) to the pull request 269 but the problem is that there is Quality Gate failure. I believe the problem is that the added functions in the class SystemParticipantWithHeatResult.java have not been tested. |
src/main/java/edu/ie3/datamodel/io/factory/result/SystemParticipantResultFactory.java
Outdated
Show resolved
Hide resolved
…t class details, modified changelog and authors file and simplified some code in SystemParticipantResultFactory
I have added the requested changes to the puml file and the Right now, several test cases are failing here but they all seem to pass on my local machine. |
Thanks for that catch! I would suggest to only stick to one issue here (this is adding the heat part). This makes it easier to keep track of PRs. |
!test |
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.
Please wait with merging, until the tests are passing.
Resolves #236. Changes done -
SystemParticipantWithHeatResult
to include the additional thermal power variableqDot
.ChpResult.java
to inherit this class.SystemParticipantResultFactory.java
to add the additional thermal power variable.Several test cases are failing now. I am trying to resolve the issues.