Searched refs:to_unit (Results 1 – 3 of 3) sorted by relevance
95 return self.value == other.to_unit(self._unit).value98 return self.value < other.to_unit(self._unit).value109 return Measurement(self.value + other.to_unit(self._unit).value,116 return Measurement(self.value - other.to_unit(self._unit).value,135 def to_unit(self, new_unit): member in Measurement228 .to_unit(SECOND).value - self._start_time236 .to_unit(SECOND).value - self._start_time259 return Measurement.amps(0).to_unit(MILLIAMP)261 .to_unit(MILLIAMP))266 return Measurement.amps(self._max_current or 0).to_unit(MILLIAMP)[all …]
474 'actual': str(actual_result.to_unit(unit))
56 current_milliamps = current_amps.to_unit(MILLIAMP)65 power_watts = current_amps.to_unit(WATT)