diff options
20 files changed, 71 insertions, 71 deletions
diff --git a/gr-fec/grc/ldpc_decoder_def_list.block.yml b/gr-fec/grc/ldpc_decoder_def_list.block.yml index 23cf8c358e..e23a3967fc 100644 --- a/gr-fec/grc/ldpc_decoder_def_list.block.yml +++ b/gr-fec/grc/ldpc_decoder_def_list.block.yml @@ -41,9 +41,9 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.ldpc_decoder.make(${file}, ${sigma}, ${max_iter}) % elif int(ndim)==1: - self.${id} = ${id} = map( (lambda a: fec.ldpc_decoder.make(${file}, ${sigma}, ${max_iter})), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda a: fec.ldpc_decoder.make(${file}, ${sigma}, ${max_iter})), range(0,${dim1}))) % else: - self.${id} = ${id} = map( (lambda b: map( ( lambda a: fec.ldpc_decoder.make(${file}, ${sigma}, ${max_iter})), range(0,${dim2}) ) ), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda b: map( ( lambda a: fec.ldpc_decoder.make(${file}, ${sigma}, ${max_iter})), range(0,${dim2}) ) ), range(0,${dim1}))) % endif documentation: |- diff --git a/gr-fec/grc/ldpc_encoder_def_list.block.yml b/gr-fec/grc/ldpc_encoder_def_list.block.yml index bb9b177938..6643e63146 100644 --- a/gr-fec/grc/ldpc_encoder_def_list.block.yml +++ b/gr-fec/grc/ldpc_encoder_def_list.block.yml @@ -33,9 +33,9 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.ldpc_encoder_make(${file}) % elif int(ndim)==1: - self.${id} = ${id} = map( (lambda a: fec.ldpc_encoder_make(${file})), range(0,${dim1}) ) + self.${id} = ${id} = list(map( (lambda a: fec.ldpc_encoder_make(${file})), range(0,${dim1}) )) % else: - self.${id} = ${id} = map( (lambda b: map( ( lambda a: fec.ldpc_encoder_make(${file})), range(0,${dim2}) ) ), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda b: map( ( lambda a: fec.ldpc_encoder_make(${file})), range(0,${dim2}) ) ), range(0,${dim1}))) % endif file_format: 1 diff --git a/gr-fec/grc/tpc_decoder_def_list.block.yml b/gr-fec/grc/tpc_decoder_def_list.block.yml index c30c78b50d..73f9c570a8 100644 --- a/gr-fec/grc/tpc_decoder_def_list.block.yml +++ b/gr-fec/grc/tpc_decoder_def_list.block.yml @@ -64,9 +64,9 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.tpc_decoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval}, ${max_iter}, ${decoder_type}) % elif int(ndim)==1: - self.${id} = ${id} = map( (lambda a: fec.tpc_decoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval}, ${max_iter}, ${decoder_type})), range(0,${dim1}) ) + self.${id} = ${id} = list(map( (lambda a: fec.tpc_decoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval}, ${max_iter}, ${decoder_type})), range(0,${dim1}) )) % else: - self.${id} = ${id} = map( (lambda b: map( ( lambda a: fec.tpc_decoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval}, ${max_iter}, ${decoder_type})), range(0,${dim2}) ) ), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda b: map( ( lambda a: fec.tpc_decoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval}, ${max_iter}, ${decoder_type})), range(0,${dim2}) ) ), range(0,${dim1}))) % endif documentation: |- diff --git a/gr-fec/grc/tpc_encoder_def_list.block.yml b/gr-fec/grc/tpc_encoder_def_list.block.yml index 4883a449ce..47a29f909f 100644 --- a/gr-fec/grc/tpc_encoder_def_list.block.yml +++ b/gr-fec/grc/tpc_encoder_def_list.block.yml @@ -54,9 +54,9 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.tpc_encoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval}) % elif int(ndim)==1: - self.${id} = ${id} = map( (lambda a: fec.tpc_encoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval})), range(0,${dim1}) ) + self.${id} = ${id} = list(map( (lambda a: fec.tpc_encoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval})), range(0,${dim1}) )) % else: - self.${id} = ${id} = map( (lambda b: map( ( lambda a: fec.tpc_encoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval})), range(0,${dim2}) ) ), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda b: map( ( lambda a: fec.tpc_encoder_make(${row_poly}, ${col_poly}, ${krow}, ${kcol}, ${bval}, ${qval})), range(0,${dim2}) ) ), range(0,${dim1}))) % endif documentation: |- diff --git a/gr-fec/grc/variable_cc_decoder_def_list.block.yml b/gr-fec/grc/variable_cc_decoder_def_list.block.yml index 4bdbd72c1c..1cb1cfe746 100644 --- a/gr-fec/grc/variable_cc_decoder_def_list.block.yml +++ b/gr-fec/grc/variable_cc_decoder_def_list.block.yml @@ -67,13 +67,13 @@ templates: self.${id} = ${id} = fec.cc_decoder.make(${framebits},\ ${k}, ${rate}, ${polys}, ${state_start}, ${state_end}, ${mode}, ${padding})\ % elif int(ndim)==1: - self.${id} = ${id} = map( (lambda a: fec.cc_decoder.make(${framebits},\ + self.${id} = ${id} = list(map( (lambda a: fec.cc_decoder.make(${framebits},\ ${k}, ${rate}, ${polys}, ${state_start}, ${state_end}, ${mode}, ${padding})),\ - range(0,${dim1})) + range(0,${dim1}))) % else: - self.${id} = ${id} = map( (lambda b: map(\ + self.${id} = ${id} = list(map( (lambda b: map(\ ( lambda a: fec.cc_decoder.make(${framebits}, ${k}, ${rate}, ${polys}, ${state_start},\ - ${state_end}, ${mode}, ${padding})), range(0,${dim2}) ) ), range(0,${dim1})) + ${state_end}, ${mode}, ${padding})), range(0,${dim2}) ) ), range(0,${dim1}))) % endif documentation: "" diff --git a/gr-fec/grc/variable_cc_encoder_def_list.block.yml b/gr-fec/grc/variable_cc_encoder_def_list.block.yml index d6a3e4bf18..0a5354d421 100644 --- a/gr-fec/grc/variable_cc_encoder_def_list.block.yml +++ b/gr-fec/grc/variable_cc_encoder_def_list.block.yml @@ -58,12 +58,12 @@ templates: self.${id} = ${id} = fec.cc_encoder_make(${framebits},\ ${k}, ${rate}, ${polys}, ${state_start}, ${mode}, ${padding}) % elif int(ndim)==1: - self.${id} = ${id} = map( (lambda a: fec.cc_encoder_make(${framebits},\ - ${k}, ${rate}, ${polys}, ${state_start}, ${mode}, ${padding})), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda a: fec.cc_encoder_make(${framebits},\ + ${k}, ${rate}, ${polys}, ${state_start}, ${mode}, ${padding})), range(0,${dim1}))) % else: - self.${id} = ${id} = map( (lambda b: map( ( lambda a: fec.cc_encoder_make(${framebits},\ + self.${id} = ${id} = list(map( (lambda b: map( ( lambda a: fec.cc_encoder_make(${framebits},\ ${k}, ${rate}, ${polys}, ${state_start}, ${mode}, ${padding})), range(0,${dim2})\) ), - range(0,${dim1})) + range(0,${dim1}))) % endif documentation: "" diff --git a/gr-fec/grc/variable_ccsds_encoder_def_list.block.yml b/gr-fec/grc/variable_ccsds_encoder_def_list.block.yml index 2cb9ffd3f5..e36fce82ce 100644 --- a/gr-fec/grc/variable_ccsds_encoder_def_list.block.yml +++ b/gr-fec/grc/variable_ccsds_encoder_def_list.block.yml @@ -39,13 +39,13 @@ templates: self.${id} = ${id} = fec.ccsds_encoder_make(${framebits},\ ${state_start}, ${mode}) % elif int(ndim)==1: - self.${id} = ${id} = map(\ + self.${id} = ${id} = list(map(\ (lambda a: fec.ccsds_encoder_make(${framebits}, ${state_start}, ${mode})),\ - range(0,${dim1}) ) + range(0,${dim1}) )) % else: - self.${id} = ${id} = map( (lambda b: map(\ + self.${id} = ${id} = list(map( (lambda b: map(\ ( lambda a: fec.ccsds_encoder_make(${framebits}, ${state_start}, ${mode})),\ - range(0,${dim2}) ) ), range(0,${dim1})) + range(0,${dim2}) ) ), range(0,${dim1}))) % endif documentation: "" diff --git a/gr-fec/grc/variable_dummy_decoder_def_list.block.yml b/gr-fec/grc/variable_dummy_decoder_def_list.block.yml index 3f88df9982..1add8e878a 100644 --- a/gr-fec/grc/variable_dummy_decoder_def_list.block.yml +++ b/gr-fec/grc/variable_dummy_decoder_def_list.block.yml @@ -33,11 +33,11 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.dummy_decoder.make(${framebits}) \ % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.dummy_decoder.make(${framebits})),\ - range(0,${dim1})) + self.${id} = ${id} = list(map((lambda a: fec.dummy_decoder.make(${framebits})),\ + range(0,${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda\ - a: fec.dummy_decoder.make(${framebits})), range(0,${dim2}))), range(0,${dim1}))\ + self.${id} = ${id} = list(map((lambda b: map((lambda\ + a: fec.dummy_decoder.make(${framebits})), range(0,${dim2}))), range(0,${dim1})))\ % endif documentation: "" diff --git a/gr-fec/grc/variable_dummy_encoder_def_list.block.yml b/gr-fec/grc/variable_dummy_encoder_def_list.block.yml index d5c6cba130..fb487147ff 100644 --- a/gr-fec/grc/variable_dummy_encoder_def_list.block.yml +++ b/gr-fec/grc/variable_dummy_encoder_def_list.block.yml @@ -29,11 +29,11 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.dummy_encoder_make(${framebits})\ % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.dummy_encoder_make(${framebits})),\ - range(0,${dim1})) + self.${id} = ${id} = list(map((lambda a: fec.dummy_encoder_make(${framebits})),\ + range(0,${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda\ - a: fec.dummy_encoder_make(${framebits})), range(0,${dim2}))), range(0,${dim1}))\ + self.${id} = ${id} = list(map((lambda b: map((lambda\ + a: fec.dummy_encoder_make(${framebits})), range(0,${dim2}))), range(0,${dim1})))\ % endif documentation: "" diff --git a/gr-fec/grc/variable_ldpc_bit_flip_decoder.block.yml b/gr-fec/grc/variable_ldpc_bit_flip_decoder.block.yml index cbc3e96254..07e3387841 100644 --- a/gr-fec/grc/variable_ldpc_bit_flip_decoder.block.yml +++ b/gr-fec/grc/variable_ldpc_bit_flip_decoder.block.yml @@ -37,13 +37,13 @@ templates: self.${id} = ${id} = fec.ldpc_bit_flip_decoder.make(${matrix_object}.get_base_sptr(),\ ${max_iterations}) % elif int(ndim)==1: - self.${id} = ${id} = map((lambda\ + self.${id} = ${id} = list(map((lambda\ a: fec.ldpc_bit_flip_decoder.make(${matrix_object}.get_base_sptr(), ${max_iterations})),\ - range(0,${dim1})) + range(0,${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda\ + self.${id} = ${id} = list(map((lambda b: map((lambda\ a: fec.ldpc_bit_flip_decoder.make(${matrix_object}.get_base_sptr(), ${max_iterations})),\ - range(0,${dim2}))), range(0,${dim1})) + range(0,${dim2}))), range(0,${dim1}))) % endif documentation: |- diff --git a/gr-fec/grc/variable_ldpc_encoder_G.block.yml b/gr-fec/grc/variable_ldpc_encoder_G.block.yml index ee17cc670d..787e56c1b3 100644 --- a/gr-fec/grc/variable_ldpc_encoder_G.block.yml +++ b/gr-fec/grc/variable_ldpc_encoder_G.block.yml @@ -32,11 +32,11 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.ldpc_gen_mtrx_encoder_make(${G})\ % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.ldpc_gen_mtrx_encoder_make(${G})),\ - range(0,${dim1})) + self.${id} = ${id} = list(map((lambda a: fec.ldpc_gen_mtrx_encoder_make(${G})),\ + range(0,${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda\ - a: fec.ldpc_gen_mtrx_encoder_make(${G})), range(0,${dim2}))), range(0,${dim1}))\ + self.${id} = ${id} = list(map((lambda b: map((lambda\ + a: fec.ldpc_gen_mtrx_encoder_make(${G})), range(0,${dim2}))), range(0,${dim1})))\ % endif documentation: |- diff --git a/gr-fec/grc/variable_ldpc_encoder_H.block.yml b/gr-fec/grc/variable_ldpc_encoder_H.block.yml index e6fe3c49a2..11a051ead1 100644 --- a/gr-fec/grc/variable_ldpc_encoder_H.block.yml +++ b/gr-fec/grc/variable_ldpc_encoder_H.block.yml @@ -32,11 +32,11 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.ldpc_par_mtrx_encoder_make_H(${H})\ % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.ldpc_par_mtrx_encoder_make_H(${H})),\ - range(0,${dim1})) + self.${id} = ${id} = list(map((lambda a: fec.ldpc_par_mtrx_encoder_make_H(${H})),\ + range(0,${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda\ - a: fec.ldpc_par_mtrx_encoder_make_H(${H})), range(0,${dim2}))), range(0,${dim1}))\ + self.${id} = ${id} = list(map((lambda b: map((lambda\ + a: fec.ldpc_par_mtrx_encoder_make_H(${H})), range(0,${dim2}))), range(0,${dim1})))\ % endif documentation: |- diff --git a/gr-fec/grc/variable_polar_decoder_sc.block.yml b/gr-fec/grc/variable_polar_decoder_sc.block.yml index 157a94cc15..bcc278152b 100644 --- a/gr-fec/grc/variable_polar_decoder_sc.block.yml +++ b/gr-fec/grc/variable_polar_decoder_sc.block.yml @@ -39,13 +39,13 @@ templates: self.${id} = ${id} = fec.polar_decoder_sc.make(${block_size},\ ${num_info_bits}, ${frozen_bit_positions}, ${frozen_bit_values}) % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.polar_decoder_sc.make(${block_size},\ + self.${id} = ${id} = list(map((lambda a: fec.polar_decoder_sc.make(${block_size},\ ${num_info_bits}, ${frozen_bit_positions}, ${frozen_bit_values})), range(0,\ - ${dim1})) + ${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda a:\ + self.${id} = ${id} = list(map((lambda b: map((lambda a:\ fec.polar_decoder_sc.make(${block_size}, ${num_info_bits}, ${frozen_bit_positions},\ - ${frozen_bit_values})), range(0, ${dim2}))), range(0, ${dim1})) + ${frozen_bit_values})), range(0, ${dim2}))), range(0, ${dim1}))) % endif file_format: 1 diff --git a/gr-fec/grc/variable_polar_decoder_sc_list.block.yml b/gr-fec/grc/variable_polar_decoder_sc_list.block.yml index a13de5745b..cd1af664b1 100644 --- a/gr-fec/grc/variable_polar_decoder_sc_list.block.yml +++ b/gr-fec/grc/variable_polar_decoder_sc_list.block.yml @@ -42,14 +42,14 @@ templates: self.${id} = ${id} = fec.polar_decoder_sc_list.make(${max_list_size},\ ${block_size}, ${num_info_bits}, ${frozen_bit_positions}, ${frozen_bit_values})\ % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.polar_decoder_sc_list.make(${max_list_size},\ + self.${id} = ${id} = list(map((lambda a: fec.polar_decoder_sc_list.make(${max_list_size},\ ${block_size}, ${num_info_bits}, ${frozen_bit_positions}, ${frozen_bit_values})),\ - range(0, ${dim1})) + range(0, ${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda\ + self.${id} = ${id} = list(map((lambda b: map((lambda\ a: fec.polar_decoder_sc_list.make(${max_list_size}, ${block_size}, ${num_info_bits},\ ${frozen_bit_positions}, ${frozen_bit_values})), range(0, ${dim2}))), range(0,\ - ${dim1})) + ${dim1}))) % endif file_format: 1 diff --git a/gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml b/gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml index dca20dfa7e..83df13000c 100644 --- a/gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml +++ b/gr-fec/grc/variable_polar_decoder_sc_systematic.block.yml @@ -36,11 +36,11 @@ templates: self.${id} = ${id} = fec.polar_decoder_sc_systematic.make(${block_size},\ ${num_info_bits}, ${frozen_bit_positions}) % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.polar_decoder_sc_systematic.make(${block_size},\ - \ ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim1}) ) + self.${id} = ${id} = list(map((lambda a: fec.polar_decoder_sc_systematic.make(${block_size},\ + \ ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim1}) )) % else: - self.${id} = ${id} = map((lambda b: map((lambda a: fec.polar_decoder_sc_systematic.make(${block_size},\ - \ ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim2}))), range(0, ${dim1})) + self.${id} = ${id} = list(map((lambda b: map((lambda a: fec.polar_decoder_sc_systematic.make(${block_size},\ + \ ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim2}))), range(0, ${dim1}))) % endif file_format: 1 diff --git a/gr-fec/grc/variable_polar_encoder.block.yml b/gr-fec/grc/variable_polar_encoder.block.yml index e2f6fae84e..dbaa619f5f 100644 --- a/gr-fec/grc/variable_polar_encoder.block.yml +++ b/gr-fec/grc/variable_polar_encoder.block.yml @@ -45,13 +45,13 @@ templates: self.${id} = ${id} = fec.polar_encoder.make(${block_size},\ ${num_info_bits}, ${frozen_bit_positions}, ${frozen_bit_values}, ${is_packed})\ % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.polar_encoder.make(${block_size},\ + self.${id} = ${id} = list(map((lambda a: fec.polar_encoder.make(${block_size},\ ${num_info_bits}, ${frozen_bit_positions}, ${frozen_bit_values}, ${is_packed})),\ - range(0, ${dim1})) + range(0, ${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda\ + self.${id} = ${id} = list(map((lambda b: map((lambda\ a: fec.polar_encoder.make(${block_size}, ${num_info_bits}, ${frozen_bit_positions},\ - ${frozen_bit_values}, ${is_packed})), range(0, ${dim2}))), range(0, ${dim1}))\ + ${frozen_bit_values}, ${is_packed})), range(0, ${dim2}))), range(0, ${dim1}))\) % endif file_format: 1 diff --git a/gr-fec/grc/variable_polar_encoder_systematic.block.yml b/gr-fec/grc/variable_polar_encoder_systematic.block.yml index 0a5e4e873e..64f1823372 100644 --- a/gr-fec/grc/variable_polar_encoder_systematic.block.yml +++ b/gr-fec/grc/variable_polar_encoder_systematic.block.yml @@ -35,11 +35,11 @@ templates: self.${id} = ${id} = fec.polar_encoder_systematic.make(${block_size},\ ${num_info_bits}, ${frozen_bit_positions}) % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.polar_encoder_systematic.make(${block_size},\ - ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim1})) + self.${id} = ${id} = list(map((lambda a: fec.polar_encoder_systematic.make(${block_size},\ + ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim1}))) % else: - self.${id} = ${id} = map((lambda b: map((lambda a: fec.polar_encoder_systematic.make(${block_size},\ - ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim2}))), range(0, ${dim1})) + self.${id} = ${id} = list(map((lambda b: map((lambda a: fec.polar_encoder_systematic.make(${block_size},\ + ${num_info_bits}, ${frozen_bit_positions})), range(0, ${dim2}))), range(0, ${dim1}))) % endif file_format: 1 diff --git a/gr-fec/grc/variable_repetition_decoder_def_list.block.yml b/gr-fec/grc/variable_repetition_decoder_def_list.block.yml index 6417a5f3e1..04632a32c9 100644 --- a/gr-fec/grc/variable_repetition_decoder_def_list.block.yml +++ b/gr-fec/grc/variable_repetition_decoder_def_list.block.yml @@ -42,11 +42,11 @@ templates: self.${id} = ${id} = fec.repetition_decoder.make(${framebits},\ ${rep}, ${prob}) % elif int(ndim)==1: - self.${id} = ${id} = map( (lambda\ - a: fec.repetition_decoder.make(${framebits}, ${rep}, ${prob})), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda\ + a: fec.repetition_decoder.make(${framebits}, ${rep}, ${prob})), range(0,${dim1}))) % else: - self.${id} = ${id} = map( (lambda b: map( ( lambda a: fec.repetition_decoder.make(${framebits},\ - ${rep}, ${prob})), range(0,${dim2}) ) ), range(0,${dim1})) + self.${id} = ${id} = list(map( (lambda b: map( ( lambda a: fec.repetition_decoder.make(${framebits},\ + ${rep}, ${prob})), range(0,${dim2}) ) ), range(0,${dim1}))) % endif documentation: "" diff --git a/gr-fec/grc/variable_repetition_encoder_def_list.block.yml b/gr-fec/grc/variable_repetition_encoder_def_list.block.yml index e1b8e5085b..6a0b328749 100644 --- a/gr-fec/grc/variable_repetition_encoder_def_list.block.yml +++ b/gr-fec/grc/variable_repetition_encoder_def_list.block.yml @@ -32,12 +32,12 @@ templates: % if int(ndim)==0: self.${id} = ${id} = fec.repetition_encoder_make(${framebits}, ${rep}) % elif int(ndim)==1: - self.${id} = ${id} = map((lambda a: fec.repetition_encoder_make(${framebits},\ - ${rep})), range(0,${dim1})) + self.${id} = ${id} = list(map((lambda a: fec.repetition_encoder_make(${framebits},\ + ${rep})), range(0,${dim1}))) % else: - self.${id} = ${id} = map((lambda\ + self.${id} = ${id} = list(map((lambda\ b: map((lambda a: fec.repetition_encoder_make(${framebits}, ${rep})), range(0,${dim2}))),\ - range(0,${dim1})) + range(0,${dim1}))) % endif documentation: "" diff --git a/gr-fec/python/fec/qa_fecapi_dummy.py b/gr-fec/python/fec/qa_fecapi_dummy.py index 368014d890..202cdfc000 100644 --- a/gr-fec/python/fec/qa_fecapi_dummy.py +++ b/gr-fec/python/fec/qa_fecapi_dummy.py @@ -158,7 +158,7 @@ class test_fecapi_dummy(gr_unittest.TestCase): frame_size = 30 dims = 5 enc = list(map((lambda a: fec.dummy_encoder_make(frame_size*8)), list(range(0,dims)))) - #dec = map((lambda a: fec.dummy_decoder.make(frame_size*8)), range(0,dims)) + #dec = list(map((lambda a: fec.dummy_decoder.make(frame_size*8)), range(0,dims))) threading = 'capillary' self.assertRaises(AttributeError, lambda: extended_encoder(enc, threading=threading, puncpat="11")) @@ -166,7 +166,7 @@ class test_fecapi_dummy(gr_unittest.TestCase): def test_parallelism1_06(self): frame_size = 30 dims = 5 - #enc = map((lambda a: fec.dummy_encoder_make(frame_size*8)), range(0,dims)) + #enc = list(map((lambda a: fec.dummy_encoder_make(frame_size*8)), range(0,dims))) dec = list(map((lambda a: fec.dummy_decoder.make(frame_size*8)), list(range(0,dims)))) threading = 'capillary' @@ -177,7 +177,7 @@ class test_fecapi_dummy(gr_unittest.TestCase): dims1 = 16 dims2 = 16 enc = list(map((lambda b: list(map((lambda a: fec.dummy_encoder_make(frame_size*8)), list(range(0,dims1))))), list(range(0,dims2)))) - #dec = map((lambda b: map((lambda a: fec.dummy_decoder_make(frame_size*8)), range(0,dims1))), range(0,dims2)) + #dec = list(map((lambda b: map((lambda a: fec.dummy_decoder_make(frame_size*8)), range(0,dims1))), range(0,dims2))) threading = 'capillary' self.assertRaises(AttributeError, lambda: extended_encoder(enc, threading=threading, puncpat="11")) |