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

Register missing units to addUnit #282

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

danielfeismann
Copy link
Member

resolves #280

@danielfeismann danielfeismann added the enhancement New feature or request label Jul 22, 2022
@danielfeismann danielfeismann self-assigned this Jul 22, 2022
@sonarqubegithubprchecks

This comment has been minimized.

@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

Patch coverage has no change and project coverage change: +0.24 🎉

Comparison is base (ee06fe3) 67.46% compared to head (1a8b43f) 67.71%.

❗ Current head 1a8b43f differs from pull request most recent head 09145db. Consider uploading reports for the commit 09145db to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #282      +/-   ##
============================================
+ Coverage     67.46%   67.71%   +0.24%     
  Complexity      234      234              
============================================
  Files            42       42              
  Lines          1297     1307      +10     
  Branches        124      124              
============================================
+ Hits            875      885      +10     
  Misses          388      388              
  Partials         34       34              

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarqubegithubprchecks

This comment has been minimized.

@danielfeismann danielfeismann marked this pull request as ready for review July 22, 2022 06:15
@sonarqubegithubprchecks

This comment has been minimized.

# Conflicts:
#	src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java
@sonarqubegithubprchecks

This comment has been minimized.

@sonarqubegithubprchecks

This comment has been minimized.

@sonarqubegithubprchecks

This comment has been minimized.

1 similar comment
@sonarqubegithubprchecks

This comment has been minimized.

# Conflicts:
#	CHANGELOG.md
#	src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java
@sonarqubegithubprchecks

This comment has been minimized.

@sonarqubegithubprchecks

This comment has been minimized.

@sonarqubegithubprchecks

This comment has been minimized.

Comment on lines -229 to -230
// varh, kvarh, Mvarh are kept out of this because they register for the same units as Wh, kWh,
// MWh
Copy link
Member

Choose a reason for hiding this comment

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

I added this remark for a reason... Something broke, when I added varh etc., because they collided with Wh etc.
You should do thorough testing, also in SIMONA, with this...

@sonarqubegithubprchecks
Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage 100.00% Coverage (66.10% Estimated after merge)
  • Duplications 0.00% Duplicated Code (0.00% Estimated after merge)

Project ID: edu.ie3:utils

View in SonarQube

@danielfeismann
Copy link
Member Author

Does it make sense to keep on here with respect to squants? Whats your opinion @sebastian-peter

@sebastian-peter
Copy link
Member

@danielfeismann I think this can still be valuable, we're not close to being completely done with javax quantities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Register all custom quantity units in PowerSystemUnits
2 participants