def parse_str(string):
    try:
        return float(string)
    except __HOLE__:
        prefixes = dict(prefixes_SI.items() + prefixes_IEC.items())
        for prefix, val in prefixes.items():
            if string.endswith(prefix):
                return float(string.replace(prefix, '')) * val
    raise Exception("I didn't understand '%s'" % string)
dataset/ETHPy150Open vimeo/graph-explorer/graph_explorer/convert.py/parse_str