def r_num ( obj ) : if isinstance ( obj , ( list , tuple ) ) : it = iter else : it = LinesIterator dataset = Dataset ( [ Dataset . FLOAT ] ) return dataset . load ( it ( obj ) )
python reading in data ints as objects
Read list of numbers .
def r_num(obj):
    """Read list of numbers."""
    if isinstance(obj, (list, tuple)):
        it = iter
    else:
        it = LinesIterator
    dataset = Dataset([Dataset.FLOAT])
    return dataset.load(it(obj))