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

Add support for complex values to Array validator #1489

Merged

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented Feb 25, 2019

In the process discovered that the original typecheking for real values was actually not working so fixed that and added a test for it.

@jenshnielsen jenshnielsen changed the title Feature/complex array validator Add support for complex values to Array validator Feb 25, 2019
@jenshnielsen jenshnielsen changed the title Add support for complex values to Array validator [wip] Add support for complex values to Array validator Feb 25, 2019
@codecov
Copy link

codecov bot commented Feb 25, 2019

Codecov Report

Merging #1489 into master will increase coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1489      +/-   ##
==========================================
+ Coverage   71.45%   71.54%   +0.09%     
==========================================
  Files         105      105              
  Lines       12106    12133      +27     
==========================================
+ Hits         8650     8681      +31     
+ Misses       3456     3452       -4

@jenshnielsen jenshnielsen force-pushed the feature/complex_array_validator branch 2 times, most recently from e7e8abf to 896c310 Compare February 26, 2019 11:38
@jenshnielsen jenshnielsen changed the title [wip] Add support for complex values to Array validator Add support for complex values to Array validator Feb 26, 2019
@jenshnielsen
Copy link
Collaborator Author

@QCoDeS/core I think this is ready for review

qcodes/tests/test_validators.py Outdated Show resolved Hide resolved
qcodes/utils/validators.py Outdated Show resolved Hide resolved
qcodes/utils/validators.py Outdated Show resolved Hide resolved
qcodes/utils/validators.py Outdated Show resolved Hide resolved
@jenshnielsen jenshnielsen force-pushed the feature/complex_array_validator branch from 688bf32 to 11b3974 Compare February 27, 2019 09:04
astafan8
astafan8 previously approved these changes Feb 27, 2019
Copy link
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

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

Great!

a lot of logic in the init but it is clear/separated and understandable. Thanks for the tests!

qcodes/utils/validators.py Outdated Show resolved Hide resolved
qcodes/utils/validators.py Outdated Show resolved Hide resolved
qcodes/tests/test_validators.py Outdated Show resolved Hide resolved
qcodes/tests/test_validators.py Outdated Show resolved Hide resolved
@jenshnielsen jenshnielsen dismissed astafan8’s stale review February 27, 2019 09:50

I am going to block this from being merged until Williams changes to the type validation has been merged. Since there is a likelyhood of datalose for complex numbers without that.

@jenshnielsen jenshnielsen force-pushed the feature/complex_array_validator branch 2 times, most recently from 35313ac to dc61207 Compare March 6, 2019 08:55
@jenshnielsen jenshnielsen force-pushed the feature/complex_array_validator branch from dc61207 to 45700b1 Compare March 13, 2019 08:23
@jenshnielsen jenshnielsen force-pushed the feature/complex_array_validator branch from 29cb681 to eb2a1b3 Compare May 6, 2019 09:07
@jenshnielsen jenshnielsen force-pushed the feature/complex_array_validator branch from eb2a1b3 to 9a158fe Compare May 6, 2019 09:31
@jenshnielsen jenshnielsen reopened this May 6, 2019
@jenshnielsen
Copy link
Collaborator Author

@QCoDeS/core I think this is ready to land but needs a new review since I dismissed @astafan8 s original review. I don't think there are any important changes since then

@astafan8
Copy link
Contributor

astafan8 commented May 6, 2019

Then I'll let the other core devs do this review.

@jenshnielsen
Copy link
Collaborator Author

@astafan8 Just to be clear I did not dismiss the review because there was anything wrong with it :) Just because I did not want this to land before #1477 landed

@astafan8
Copy link
Contributor

astafan8 commented May 6, 2019

@jenshnielsen sure, i didn't mean that :) just let's get some other pair of eyes to have a look at the change :)

@WilliamHPNielsen
Copy link
Contributor

I think this looks good. Looking forward to see the first instrument use this.

@jenshnielsen jenshnielsen merged commit ebae434 into microsoft:master May 7, 2019
@jenshnielsen jenshnielsen deleted the feature/complex_array_validator branch May 7, 2019 11:58
giulioungaretti pushed a commit that referenced this pull request May 7, 2019
Merge: 52b5b1d 1b438bd
Author: Jens Hedegaard Nielsen <[email protected]>

    Merge pull request #1489 from jenshnielsen/feature/complex_array_validator
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