Skip to content

Commit 0c73f8d

Browse files
committed
Fix D5a bug
1 parent 2bfc341 commit 0c73f8d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

spirack/D5a_module.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ def change_span_update(self, DAC, span):
105105
span (constant): values for the span as mentioned in the datasheet, use
106106
constants as defined above
107107
"""
108-
range_values = {'4V_uni':0, '8V_uni':1, '4V_bi':2, '8V_bi':3, '2V_bi':4}
109-
if span not in range_values:
110-
raise ValueError('D5a module {} [change_span_update]: value {} not allowed for span. Possible values '
111-
'are: {}'.format(self.module, span, [*range_values.keys()]))
112108
if DAC not in range(self._num_dacs):
113109
raise ValueError('D5a module {} [change_span_update]: DAC {} does not exist.'.format(self.module, DAC))
114110

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

spirack/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.18'
1+
__version__ = '0.2.0'

0 commit comments

Comments
 (0)