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

Restrict Levels to real quantities #400

Merged
merged 2 commits into from
Jan 14, 2021
Merged

Conversation

sostock
Copy link
Collaborator

@sostock sostock commented Nov 20, 2020

Fixes #398. This allows only real quantities in Levels (for the value as well as the reference quantity).

@codecov-io
Copy link

Codecov Report

Merging #400 (8790dec) into master (47d131b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #400   +/-   ##
=======================================
  Coverage   83.20%   83.20%           
=======================================
  Files          15       15           
  Lines        1280     1280           
=======================================
  Hits         1065     1065           
  Misses        215      215           
Impacted Files Coverage Δ
src/types.jl 92.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 47d131b...8790dec. Read the comment docs.

src/types.jl Outdated Show resolved Hide resolved
Comment on lines +283 to +284
const ReferenceQuantity = Union{RealQuantity, IsRootPowerRatio{S,<:RealQuantity} where S}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe define before the first use?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For that, we would need to move the definition of IsRootPowerRatio as well. I have no problem with that, what do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, yeah, it's better to not move stuff around for no good reason

@giordano giordano merged commit f191e38 into PainterQubits:master Jan 14, 2021
@sostock sostock deleted the reallevels branch January 15, 2021 14:14
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.

Complex Level
3 participants