def int_to_TTL(bit_depth, target): ''' Pipeline wrapper around :func:`cns.util.binary_func.int_to_TTL` ''' from cns.util.binary_funcs import int_to_TTL while True: target.send(int_to_TTL((yield), bit_depth))
def deinterleave_bits(targets): return int_to_TTL(len(targets), deinterleave(targets))