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

Better support for dimensionless quantities #7

Merged
merged 2 commits into from
Nov 13, 2020
Merged

Better support for dimensionless quantities #7

merged 2 commits into from
Nov 13, 2020

Conversation

sostock
Copy link
Owner

@sostock sostock commented Nov 13, 2020

This allows the use of DimensionlessQuantity in @eqrelation (instead of something like Unitful.Energy).

Edit: edconvert now accepts plain numbers in place of dimensionless quantities. Fixes #6.

@codecov-io
Copy link

codecov-io commented Nov 13, 2020

Codecov Report

Merging #7 (b7c8a30) into main (5571171) will increase coverage by 0.66%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   84.44%   85.10%   +0.66%     
==========================================
  Files           2        2              
  Lines          45       47       +2     
==========================================
+ Hits           38       40       +2     
  Misses          7        7              
Impacted Files Coverage Δ
src/UnitfulEquivalences.jl 100.00% <100.00%> (ø)

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 5571171...b7c8a30. Read the comment docs.

@sostock
Copy link
Owner Author

sostock commented Nov 13, 2020

Related: PainterQubits/Unitful.jl#396 (if this is fixed, we don’t need to special-case DimensionlessQuantity).

@sostock sostock changed the title Allow dimensionless quantities in at-eqrelation Better support for dimensionless quantities Nov 13, 2020
@sostock sostock merged commit 7f56486 into main Nov 13, 2020
@sostock sostock deleted the dimensionless branch November 13, 2020 12:16
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.

Equivalence involving nondimensional quantity
2 participants