[Numpy-discussion] packbits / unpackbits bugs or misfeatures?

Charles R Harris charlesr.harris at gmail.com
Sat Nov 29 21:05:40 EST 2014


On Sat, Nov 29, 2014 at 6:49 PM, Alan G Isaac <alan.isaac at gmail.com> wrote:

> Six years ago  Zachary Pincus wrote:
> > it would kind of make more sense, at least to me, for
> > unpackbits to return a boolean array, and packbits to take
> > boolean arrays. I could try to look into fixing the code
> > instead of the docs, if others agree.
>
>
> I agree with this.  (Better late than never?)
> More relevant at this point: it seems very odd
> that `packbits` does not *accept* a boolean array,
> even if it does not insist upon one.  Might this
> be considered a bug?
>
> Cheers,
> Alan Isaac
>

Both packbits and unpack bits are being refactored at this very moment, you
might want to comment there <https://github.com/numpy/numpy/pull/5319>.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20141129/9c9c3066/attachment.html>


More information about the NumPy-Discussion mailing list