Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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