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 set_parameter_bounds to IVVI.py #1128

Merged
merged 11 commits into from
Jul 27, 2018
Merged

Add set_parameter_bounds to IVVI.py #1128

merged 11 commits into from
Jul 27, 2018

Conversation

kNalj
Copy link
Contributor

@kNalj kNalj commented Jun 7, 2018

Changes proposed in this pull request:

  • updates values of dac upon changing the polarity of that dac

@WilliamHPNielsen

@codecov
Copy link

codecov bot commented Jun 7, 2018

Codecov Report

Merging #1128 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1128   +/-   ##
=======================================
  Coverage   79.97%   79.97%           
=======================================
  Files          49       49           
  Lines        6678     6678           
=======================================
  Hits         5341     5341           
  Misses       1337     1337

# self.set_parameter_bounds('dac%d' % (i+1), val, val +
# self.Fullrange.0)
self.set_parameter_bounds('dac%d' % (i+1), val, val +
self.Fullrange.0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this line split is valid python code

@@ -459,6 +460,13 @@ def get_pol_dac(self, channel):
return 'POS'
else:
return 'Invalid polarity in memory'

def set_parameter_bounds(name, min_value, max_value):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is missing a self argument. Look at the function just below for an example

@jenshnielsen
Copy link
Collaborator

@kNalj Can you remove the whitespaces that Codacy noticed then I think this should be ready

@kNalj
Copy link
Contributor Author

kNalj commented Jun 28, 2018

BUMP

Copy link
Collaborator

@jenshnielsen jenshnielsen left a comment

Choose a reason for hiding this comment

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

Looks fine to me by we dont use the IVVI
@sohailc @astafan8 is this in use in Delft

@astafan8 astafan8 merged commit 92505e0 into microsoft:master Jul 27, 2018
giulioungaretti pushed a commit that referenced this pull request Jul 27, 2018
Merge: 3d49344 53f97c0
Author: Mikhail Astafev <astafan8@gmail.com>

    Merge pull request #1128 from kNalj/patch-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants