lib/imageio/core/functions.py
def mimread(uri, format=None, **kwargs):
    """ mimread(uri, format=None, **kwargs)
    
    Reads multiple images from the specified file. Returns a list of
    numpy arrays, each with a dict of meta data at its 'meta' attribute.
    
    Parameters
    ----------
    uri : {str, bytes, file}
        The resource to load the images from. This can be a normal
        filename, a file in a zipfile, an http/ftp address, a file
        object, or the raw bytes.
    format : str
        The format to use to read the file. By default imageio selects
        the appropriate for you based on the filename and its contents.
    kwargs : ...
        Further keyword arguments are passed to the reader. See :func:`.help`
        to see what arguments are available for a particular format.
    
    Memory consumption
    ------------------
    This function will raise a RuntimeError when the read data consumes
    over 256 MB of memory. This is to protect the system using so much
    memory that it needs to resort to swapping, and thereby stall the
    computer. E.g. ``mimread('hunger_games.avi')``.
    """ 
    
    # Get reader
    reader = read(uri, format, 'I', **kwargs)
    
    # Read
    ims = []
    nbytes = 0
    for im in reader:
        ims.append(im)
        # Memory check
        nbytes += im.nbytes
        if nbytes > 256 * 1024 * 1024:
            ims[:] = []  # clear to free the memory
            raise RuntimeError('imageio.mimread() has read over 256 MiB of '
                               'image data.\nStopped to avoid memory problems.'
                               ' Use imageio.get_reader() instead.')
    
    return ims
 mimread(uri, format=None, **kwargs)
    
    Reads multiple images from the specified file. Returns a list of
    numpy arrays, each with a dict of meta data at its 'meta' attribute.
    
    Parameters
    ----------
    uri : {str, bytes, file}
        The resource to load the images from. This can be a normal
        filename, a file in a zipfile, an http/ftp address, a file
        object, or the raw bytes.
    format : str
        The format to use to read the file. By default imageio selects
        the appropriate for you based on the filename and its contents.
    kwargs : ...
        Further keyword arguments are passed to the reader. See :func:`.help`
        to see what arguments are available for a particular format.
    
    Memory consumption
    ------------------
    This function will raise a RuntimeError when the read data consumes
    over 256 MB of memory. This is to protect the system using so much
    memory that it needs to resort to swapping, and thereby stall the
    computer. E.g. ``mimread('hunger_games.avi')``.
    
mimread(uri, format=None, **kwargs)
Reads multiple images from the specified file. Returns a list of
numpy arrays, each with a dict of meta data at its 'meta' attribute.

Parameters

uri : {str, bytes, file}
The resource to load the images from. This can be a normal
filename, a file in a zipfile, an http/ftp address, a file
object, or the raw bytes.
format : str
The format to use to read the file. By default imageio selects
the appropriate for you based on the filename and its contents.
kwargs :
Further keyword arguments are passed to the reader. See :func:`.help`
to see what arguments are available for a particular format.

Memory consumption

This function will raise a RuntimeError when the read data consumes
over 256 MB of memory. This is to protect the system using so much
memory that it needs to resort to swapping, and thereby stall the
computer.
mimread ( uri format = None ** kwargs ) Reads multiple images from the specified file . Returns a list of numpy arrays each with a dict of meta data at its ' meta ' attribute . Parameters uri : { str bytes file } The resource to load the images from . This can be a normal filename a file in a zipfile an http / ftp address a file object or the raw bytes . format : str The format to use to read the file . By default imageio selects the appropriate for you based on the filename and its contents . kwargs : Further keyword arguments are passed to the reader . See : func : ` . help ` to see what arguments are available for a particular format . Memory consumption This function will raise a RuntimeError when the read data consumes over 256 MB of memory . This is to protect the system using so much memory that it needs to resort to swapping and thereby stall the computer .
def mimread(uri, format=None, **kwargs):
    reader = read(uri, format, 'I', **kwargs)
    ims = []
    nbytes = 0
    for im in reader:
        ims.append(im)
        nbytes += im.nbytes
        if nbytes > 256 * 1024 * 1024:
            ims[:] = []  
            raise RuntimeError('imageio.mimread() has read over 256 MiB of '
                               'image data.\nStopped to avoid memory problems.'
                               ' Use imageio.get_reader() instead.')
    return ims
def mimread ( uri , format = None , ** kwargs ) : reader = read ( uri , format , 'I' , ** kwargs ) ims = [ ] nbytes = 0 for im in reader : ims . append ( im ) nbytes += im . nbytes if nbytes > 256 * 1024 * 1024 : ims [ : ] = [ ] raise RuntimeError ( 'imageio.mimread() has read over 256 MiB of ' 'image data.\nStopped to avoid memory problems.' ' Use imageio.get_reader() instead.' ) return ims
mimread(uri, format=None, **kwargs)
Reads multiple images from the specified file.
mimread ( uri format = None ** kwargs ) Reads multiple images from the specified file .
""" mimread(uri, format=None, **kwargs)
    
    Reads multiple images from the specified file. Returns a list of
    numpy arrays, each with a dict of meta data at its 'meta' attribute.
    
    Parameters
    ----------
    uri : {str, bytes, file}
        The resource to load the images from. This can be a normal
        filename, a file in a zipfile, an http/ftp address, a file
        object, or the raw bytes.
    format : str
        The format to use to read the file. By default imageio selects
        the appropriate for you based on the filename and its contents.
    kwargs : ...
        Further keyword arguments are passed to the reader. See :func:`.help`
        to see what arguments are available for a particular format.
    
    Memory consumption
    ------------------
    This function will raise a RuntimeError when the read data consumes
    over 256 MB of memory. This is to protect the system using so much
    memory that it needs to resort to swapping, and thereby stall the
    computer. E.g. ``mimread('hunger_games.avi')``.
    """ # Get reader # Read # Memory check # clear to free the memory
uri
format