def iter_all(self, accepted_ids=None, shuffle=False):
    ' Iterate over all frames in the gulp.\n\n        Parameters\n        ----------\n        accepted_ids: list of str\n            A filter for accepted ids.\n        shuffle: bool\n            Shuffle the items or not.\n\n        Returns\n        -------\n        iterator\n            An iterator that yield a series of frames,meta tuples. See\n            `read_frames` for details.\n        '
    ids = self.meta_dict.keys()
    if (accepted_ids is not None):
        intersection = list((set(ids) & set(accepted_ids)))
        ids = [id_ for id_ in ids if (id_ in intersection)]
    if shuffle:
        ids = list(ids)
        np.random.shuffle(ids)
    with self.open('rb'):
        for id_ in ids:
            (frames, meta) = self.read_frames(id_)
            (yield (frames, meta))
Iterate over all frames in the gulp.

Parameters
----------
accepted_ids: list of str
    A filter for accepted ids.
shuffle: bool
    Shuffle the items or not.

Returns
-------
iterator
    An iterator that yield a series of frames,meta tuples. See
    `read_frames` for details.
def iter_all(self, accepted_ids=None, shuffle=False):
    ' Iterate over all frames in the gulp.\n\n        Parameters\n        ----------\n        accepted_ids: list of str\n            A filter for accepted ids.\n        shuffle: bool\n            Shuffle the items or not.\n\n        Returns\n        -------\n        iterator\n            An iterator that yield a series of frames,meta tuples. See\n            `read_frames` for details.\n        '
    ids = self.meta_dict.keys()
    if (accepted_ids is not None):
        intersection = list((set(ids) & set(accepted_ids)))
        ids = [id_ for id_ in ids if (id_ in intersection)]
    if shuffle:
        ids = list(ids)
        np.random.shuffle(ids)
    with self.open('rb'):
        for id_ in ids:
            (frames, meta) = self.read_frames(id_)
            (yield (frames, meta))