diff options
author | jblum | 2009-05-24 00:21:33 +0000 |
---|---|---|
committer | jblum | 2009-05-24 00:21:33 +0000 |
commit | 017b9b15193d2278d67439bb863de6c5dc6a4989 (patch) | |
tree | 140eb3b97a4ab936a8e97d3c286d83eb3ebcbfac /grc/data/platforms/python/blocks/random_source_x.xml | |
parent | 2b9514d93968c722683063badeec6e261b887914 (diff) | |
download | gnuradio-017b9b15193d2278d67439bb863de6c5dc6a4989.tar.gz gnuradio-017b9b15193d2278d67439bb863de6c5dc6a4989.tar.bz2 gnuradio-017b9b15193d2278d67439bb863de6c5dc6a4989.zip |
cast the numpy array to int, seems we cant pass numpy arrays any more
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11112 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/data/platforms/python/blocks/random_source_x.xml')
-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> |