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

Cast array params to np array before inserting #1497

Merged

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented Mar 1, 2019

Otherwise this will not work correctly when inserting as arrays

@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #1497 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1497      +/-   ##
==========================================
- Coverage   73.78%   73.77%   -0.01%     
==========================================
  Files          92       92              
  Lines       10439    10440       +1     
==========================================
  Hits         7702     7702              
- Misses       2737     2738       +1

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 to have the parametrization in place for these things in tests!

@jenshnielsen jenshnielsen force-pushed the cast_array_params_to_np_array branch from 8f7ceea to 58593a3 Compare March 1, 2019 14:55
@jenshnielsen jenshnielsen force-pushed the cast_array_params_to_np_array branch from 58593a3 to dd70d11 Compare March 1, 2019 15:39
@jenshnielsen
Copy link
Collaborator Author

I believe that coverage drops because https://github.com/QCoDeS/Qcodes/blob/master/qcodes/dataset/measurements.py#L264 is no longer hit (the conversion is now taken care of by atleast_1d)

@jenshnielsen jenshnielsen merged commit 66f8d93 into microsoft:master Mar 4, 2019
@jenshnielsen jenshnielsen deleted the cast_array_params_to_np_array branch March 4, 2019 09:14
giulioungaretti pushed a commit that referenced this pull request Mar 4, 2019
Merge: 7db6a25 dd70d11
Author: Jens Hedegaard Nielsen <[email protected]>

    Merge pull request #1497 from jenshnielsen/cast_array_params_to_np_array
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.

2 participants