interacting with numpy
Closed this issue · 2 comments
christian2022 commented
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...
ilanschnell commented
Thanks for using bitarray! Yes, there is such an example:
https://github.com/ilanschnell/bitarray/blob/master/examples/ndarray.py
christian2022 commented
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
?