def split_valuestring(input): # Don't forget to handle '\u03a9'(capital omega) and '\u2126' (ohm sign) # And '\u03bc' (greek mu) and '\u00b5' (micro sign) a = EngineerIO.EngineerIO(units=frozenset(['A', 'Ω', 'Ω', 'F', 'H', 'V', 'W']), suffices=[["y"], ["z"], ["a"], ["f"], ["p"], ["n"], ["\u00b5", "\u03bc", "u"], ["m"], [], ["k"], ["M"], ["G"], ["T"], ["E"], ["Z"], ["Y"]]) # Return val, unit return a.safe_normalize(input)
def __init__(self): self.io = EngineerIO()
def setUp(self): self.io = EngineerIO()