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

Zachary Pincus zachary.pincus@yale....
Thu Aug 7 15:28:21 CDT 2008


Hello all,

numpy.unpackbits has a docstring that states that it returns a boolean  
array, but the function instead returns a uint8 array. Should I enter  
this in trac as a documentation bug or a functionality bug?

Also, numpy.packbits will not accept a bool-typed array as input (only  
scalar-typed arrays) -- should it have this ability, for symmetry with  
unpackbits? (Assuming that unpackbits should indeed unpack into bool  
arrays...)

Zach


More information about the Numpy-discussion mailing list