<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 29, 2014 at 6:49 PM, Alan G Isaac <span dir="ltr"><<a href="mailto:alan.isaac@gmail.com" target="_blank">alan.isaac@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Six years ago  Zachary Pincus wrote:<br>
> it would kind of make more sense, at least to me, for<br>
> unpackbits to return a boolean array, and packbits to take<br>
> boolean arrays. I could try to look into fixing the code<br>
> instead of the docs, if others agree.<br>
<br>
<br>
I agree with this.  (Better late than never?)<br>
More relevant at this point: it seems very odd<br>
that `packbits` does not *accept* a boolean array,<br>
even if it does not insist upon one.  Might this<br>
be considered a bug?<br>
<br>
Cheers,<br>
Alan Isaac<br></blockquote><div> </div><div>Both packbits and unpack bits are being refactored at this very moment, you might want to <a href="https://github.com/numpy/numpy/pull/5319" target="_blank">comment there</a>.<br><br></div><div>Chuck<br></div></div></div></div>