Float To Short blocks_float_to_short from gnuradio import blocks blocks.float_to_short($vlen, $scale) set_scale($scale) Vec Length vlen 1 int Scale scale 1 real in float $vlen out short $vlen