def get(tree, name):
    """ Return a float value attribute NAME from TREE.
    """
    if name in tree:
        value = tree[name]
    else:
        return float("nan")
    try:
        a = float(value)
    except __HOLE__:
        a = float("nan")
    return a
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/utils/toilStats.py/get