def nt_to_cw(cur_enc, cur_nt):
 return array(map(int, ''.join([INT_TO_BS[cur_enc[x]] for x in cur_nt])))

def nt_to_cw ( cur_enc , cur_nt ) : return array ( map ( int , '' . join ( [ INT_TO_BS [ cur_enc [ x ] ] for x in cur_nt ] ) ) )
convert nt sequence to codeword .