ENH: Adding a count parameter to np.unpackbits
8 Apr
2018
8 Apr
'18
6:49 a.m.
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
2204
Age (days ago)
2204
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joseph Fox-Rabinovitz