Selectorblks2_selectorfrom grc_gnuradio import blks2 as grc_blks2grc_blks2.selector(
item_size=$type.size*$vlen,
num_inputs=$num_inputs,
num_outputs=$num_outputs,
input_index=$input_index,
output_index=$output_index,
)set_input_index(int($input_index))set_output_index(int($output_index))TypetypeenumNum Inputsnum_inputs2intNum Outputsnum_outputs2intInput Indexinput_index0intOutput Indexoutput_index0intVec Lengthvlen1int$vlen > 0in$type$vlen$num_inputs
Connect the sink at input index to the source at output index. Leave all other ports disconnected.