Skip to content

Commit

Permalink
adjust to new parameter class (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
peendebak authored and jenshnielsen committed Nov 6, 2017
1 parent ec9f686 commit db9f8b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qcodes/instrument_drivers/QuTech/IVVI.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,15 +510,15 @@ def adjust_parameter_validator(self, param):
Args:
param (Parameter): a dac of the IVVI instrument
"""
if not isinstance(param._vals, Numbers):
if not isinstance(param.vals, Numbers):
raise Exception('Only the Numbers validator is supported.')
min_val = param._vals._min_value
max_val = param._vals._max_value
min_val = param.vals._min_value
max_val = param.vals._max_value

min_val_upd = self.round_dac(min_val, param.name)
max_val_upd = self.round_dac(max_val, param.name)

param._vals = Numbers(min_val_upd, max_val_upd)
param.vals = Numbers(min_val_upd, max_val_upd)


'''
Expand Down

0 comments on commit db9f8b5

Please sign in to comment.