Skip to content

Conversation

trb5016
Copy link
Contributor

@trb5016 trb5016 commented Feb 21, 2020

Adding WattDays as a unit of energy (and Tera, Giga, Mega, Kilo SI prefixes).

Useful for electric utility scale measurement of energy. Also added to support future additions of other quantities.

@codecov-io
Copy link

Codecov Report

Merging #758 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #758      +/-   ##
==========================================
+ Coverage   62.97%   63.02%   +0.04%     
==========================================
  Files         273      273              
  Lines       39723    39773      +50     
==========================================
+ Hits        25017    25067      +50     
  Misses      14706    14706
Impacted Files Coverage Δ
UnitsNet/GeneratedCode/UnitAbbreviationsCache.g.cs 100% <ø> (ø) ⬆️
...nsions/GeneratedCode/NumberToEnergyExtensions.g.cs 100% <100%> (ø) ⬆️
UnitsNet/GeneratedCode/Quantities/Energy.g.cs 74.6% <100%> (+1.86%) ⬆️
UnitsNet/GeneratedCode/UnitConverter.g.cs 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9d3ff2...d3af09b. Read the comment docs.

@trb5016 trb5016 changed the title Add Energy.WattDays (Prefixes) Add Energy.WattDays (including SI Prefixes) Feb 21, 2020

protected override double WattHoursInOneJoule => 0.000277777778;

protected override double WattDaysInOneJoule => 1.157407407407410E-05;
Copy link
Owner

Choose a reason for hiding this comment

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

I couldn't find a source on this, but WattHours value / 24 give this so looks good to me.

@angularsen angularsen merged commit a0c85c4 into angularsen:master Feb 21, 2020
@angularsen
Copy link
Owner

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.

3 participants