@@ -105,10 +105,6 @@ def change_span_update(self, DAC, span):
105
105
span (constant): values for the span as mentioned in the datasheet, use
106
106
constants as defined above
107
107
"""
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 ()]))
112
108
if DAC not in range (self ._num_dacs ):
113
109
raise ValueError ('D5a module {} [change_span_update]: DAC {} does not exist.' .format (self .module , DAC ))
114
110
@@ -144,10 +140,6 @@ def change_span(self, DAC, span):
144
140
span (constant): values for the span as mentioned in the datasheet, use
145
141
constants as defined above
146
142
"""
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 ()]))
151
143
if DAC not in range (self ._num_dacs ):
152
144
raise ValueError ('D5a module {} [change_span]: DAC {} does not exist.' .format (self .module , DAC ))
153
145
0 commit comments