Re: [Numpy-discussion] packbits / unpackbits bugs or misfeatures?
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
On Sat, Nov 29, 2014 at 6:49 PM, Alan G Isaac <alan.isaac@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
participants (2)
-
Alan G Isaac
-
Charles R Harris