Hi, I have added PR #10855 to allow unpackbits to unpack less than the entire set of bits. This is not a very big change, and 100% backwards compatible. It serves two purposes:
1. To make packbits and unpackbits completely invertible (and prevent things like this from being necessary: https://stackoverflow.com/a/44962805/2988730) 2. To prevent an unnecessary waste of space for large arrays that are unpacked along a single dimension. Regards, - Joe
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion