How to use the bitarray.bitarray.tobytes function in bitarray

To help you get started, we’ve selected a few bitarray examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github beiko-lab / ananke / ananke / DBloomSCAN.py View on Github external
def save_blooms_to_ananke(bloom_garden, timeseriesdata):
    bfs = timeseriesdata._h5t.require_group("bloomfilters")
    attrs = bfs.attrs
    for bloom in bloom_garden.blooms:
        barray = np.void(bloom_garden.blooms[bloom].bitarray.tobytes())
        attrs[str(bloom)] = barray

bitarray

efficient arrays of booleans -- C extension

Python-2.0
Latest version published 1 month ago

Package Health Score

91 / 100
Full package analysis