From: jblum Date: Sun, 24 May 2009 00:21:33 +0000 (+0000) Subject: cast the numpy array to int, seems we cant pass numpy arrays any more X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=017b9b15193d2278d67439bb863de6c5dc6a4989;p=debian%2Fgnuradio 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 --- diff --git a/grc/data/platforms/python/blocks/random_source_x.xml b/grc/data/platforms/python/blocks/random_source_x.xml index cb4cc0a7..800bae71 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 @@ random_source_x from gnuradio import gr import numpy - gr.vector_source_$(type.fcn)(numpy.random.randint($min, $max, $num_samps), $repeat) + gr.vector_source_$(type.fcn)(map(int, numpy.random.randint($min, $max, $num_samps)), $repeat) Output Type type