diff options
-rw-r--r-- | grc/data/platforms/python/blocks/random_source_x.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/data/platforms/python/blocks/random_source_x.xml b/grc/data/platforms/python/blocks/random_source_x.xml index cb4cc0a79..800bae716 100644 --- a/grc/data/platforms/python/blocks/random_source_x.xml +++ b/grc/data/platforms/python/blocks/random_source_x.xml @@ -10,7 +10,7 @@ <key>random_source_x</key> <import>from gnuradio import gr</import> <import>import numpy</import> - <make>gr.vector_source_$(type.fcn)(numpy.random.randint($min, $max, $num_samps), $repeat)</make> + <make>gr.vector_source_$(type.fcn)(map(int, numpy.random.randint($min, $max, $num_samps)), $repeat)</make> <param> <name>Output Type</name> <key>type</key> |