Spaces:
Running
Running
fixed typing in uncompress
Browse files- library.ipynb +1 -0
library.ipynb
CHANGED
@@ -25,6 +25,7 @@
|
|
25 |
" return [compressed_bits,len(bools)]\n",
|
26 |
"\n",
|
27 |
"def uncompress_bool_list(log):\n",
|
|
|
28 |
" return [bool(b) for b in np.unpackbits(log[0],bitorder='big')[:log[1]]]"
|
29 |
]
|
30 |
},
|
|
|
25 |
" return [compressed_bits,len(bools)]\n",
|
26 |
"\n",
|
27 |
"def uncompress_bool_list(log):\n",
|
28 |
+
" log[0]=np.array(log[0],dtype=np.uint8)\n",
|
29 |
" return [bool(b) for b in np.unpackbits(log[0],bitorder='big')[:log[1]]]"
|
30 |
]
|
31 |
},
|