clintval/sample-sheet

__iter__() should be a generator

Closed this issue · 0 comments

def __iter__(self):
    for sample in self.samples:
        yield sample

This will negate the need for __next__() and for binding a temporary _iter = [] variable