prototype for a unified load function for all file types

This is a prototype of one way to do a unified interface like we talked about at SciPy. This is the simplest thing I could think of to provide a unified load for all the file types that pims supports, it is almost certainly not ready to be merged, and may not be the right idea at all, but this code can serve as a starting point for a discussion of if this is even a good idea.
Yes, I had a fix of that locally and then got distracted by the version
import problem. I have pushed it now.


On Tue, Jul 29, 2014 at 2:06 PM, Thomas A Caswell <notifications@github.com>
wrote:

> In pims/api.py:
>
> > +
> > +    >>> for frame in video[[5, 7, 13]]:
> > +    ...    # Do something with frames 5, 7, and 13.
> > +
> > +    >>> frame_count = len(video) # Number of frames in video
> > +    >>> frame_shape = video.frame_shape # Pixel dimensions of video
> > +    """
> > +    file = glob.glob(sequence)
> > +    if len(sequence) > 1:
> > +        return ImageSequence(files, process_func, dtype, as_gray, plugin)
> > +    if plugin is not None:
> > +        warn("scikit-image plugin specification ignored because such plugins"
> > +             "only apply when loading a sequence of image files. ")
> > +    _, ext = os.path.splitext(sequence)
> > +    ext = ext[1:].lower()
> > +    if ext in TiffStack.class_exts()
>
> missing :
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/soft-matter/pims/pull/74/files#r15540901>.
>