ilanschnell/bitarray

interacting with numpy

Closed this issue · 2 comments

Is there an example for how "Packing and unpacking to other binary data formats, e.g. numpy.ndarray." works?
Especially if you have want to have an array of bitarray...

Thanks for using bitarray! Yes, there is such an example:
https://github.com/ilanschnell/bitarray/blob/master/examples/ndarray.py

Sorry haven't seen the examples subfolder. Any idea on how to use an ndarray of bitarray and still benefitting from the packed format of bitarray?