Searched refs:to_unit (Results 1 – 2 of 2) sorted by relevance
104 return self.value == other.to_unit(self.unit).value107 return self.value < other.to_unit(self.unit).value118 return Metric(self.value + other.to_unit(self.unit).value,125 return Metric(self.value - other.to_unit(self.unit).value,136 def to_unit(self, new_unit): member in Metric191 times[START_TIMESTAMP], TIME, MILLISECOND).to_unit(199 times[END_TIMESTAMP], TIME, MILLISECOND).to_unit(265 return Metric.amps(0).to_unit(MILLIAMP)268 .to_unit(MILLIAMP))273 return Metric.amps(self._max_current or 0, 'max_current').to_unit([all …]
59 current_milliamps = current_amps.to_unit(MILLIAMP)68 power_watts = current_amps.to_unit(WATT)