Home
last modified time | relevance | path

Searched refs:range_dict (Results 1 – 1 of 1) sorted by relevance

/external/autotest/client/common_lib/
Dsmogcheck_ina219.py60 def __init__(self, slave_addr=None, range_dict=None): argument
82 if range_dict is None:
83 range_dict = DEFAULT_MEAS_RANGE_VALUE
85 self._validateRangeDict(DEFAULT_MEAS_RANGE_VALUE, range_dict)
86 self.range_dict = range_dict
130 hex_str = '0x%.4x' % self.readWord(self.range_dict[measure]['reg'])
166 hex_str, self.range_dict[measure]['denom'])
168 range_msg = '[%(min).2f, %(max).2f]' % self.range_dict[measure]
169 if (measure_float < self.range_dict[measure]['min'] or
170 measure_float > self.range_dict[measure]['max']):