Skip to content

Commit

Permalink
Fix D5a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mtiggelman committed Feb 12, 2020
1 parent 2bfc341 commit 0c73f8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions spirack/D5a_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ def change_span_update(self, DAC, span):
span (constant): values for the span as mentioned in the datasheet, use
constants as defined above
"""
range_values = {'4V_uni':0, '8V_uni':1, '4V_bi':2, '8V_bi':3, '2V_bi':4}
if span not in range_values:
raise ValueError('D5a module {} [change_span_update]: value {} not allowed for span. Possible values '
'are: {}'.format(self.module, span, [*range_values.keys()]))
if DAC not in range(self._num_dacs):
raise ValueError('D5a module {} [change_span_update]: DAC {} does not exist.'.format(self.module, DAC))

Expand Down Expand Up @@ -144,10 +140,6 @@ def change_span(self, DAC, span):
span (constant): values for the span as mentioned in the datasheet, use
constants as defined above
"""
range_values = {'4V_uni':0, '8V_uni':1, '4V_bi':2, '8V_bi':3, '2V_bi':4}
if span not in range_values:
raise ValueError('D5a module {} [change_span]: value {} not allowed for span. Possible values '
'are: {}'.format(self.module, span, [*range_values.keys()]))
if DAC not in range(self._num_dacs):
raise ValueError('D5a module {} [change_span]: DAC {} does not exist.'.format(self.module, DAC))

Expand Down
2 changes: 1 addition & 1 deletion spirack/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.18'
__version__ = '0.2.0'

0 comments on commit 0c73f8d

Please sign in to comment.