ah, kk


On Mon, Oct 28, 2013 at 2:09 PM, Jai Ram Rideout
<notifications@github.com>wrote:

> In biom/backends/scipysparse.py:
>
> > +        """
> > +        num_rows, num_cols = self.shape
> > +
> > +        if col_idx >= num_cols or col_idx < 0:
> > +            raise IndexError("Column index %d is out of bounds." % col_idx)
> > +
> > +        self.convert('csc')
> > +
> > +        col_vector = self.__class__(num_rows, 1, dtype=self.dtype)
> > +        col_vector._matrix = self._matrix.getcol(col_idx)
> > +
> > +        return col_vector
> > +
> > +    def items(self):
> > +        """Return ``[((r,c),v)]``. No guaranteed ordering!"""
> > +        return list(self.iteritems())
>
> I'm matching the interface that all sparse backends must adhere to. See
> iteritems below for the generator version.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/biom-format/biom-format/pull/227/files#r7261380>
> .
>