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.py66 def __init__(self, node_addr=None, range_dict=None): argument
88 if range_dict is None:
89 range_dict = DEFAULT_MEAS_RANGE_VALUE
91 self._validateRangeDict(DEFAULT_MEAS_RANGE_VALUE, range_dict)
92 self.range_dict = range_dict
136 hex_str = '0x%.4x' % self.readWord(self.range_dict[measure]['reg'])
172 hex_str, self.range_dict[measure]['denom'])
174 range_msg = '[%(min).2f, %(max).2f]' % self.range_dict[measure]
175 if (measure_float < self.range_dict[measure]['min'] or
176 measure_float > self.range_dict[measure]['max']):