From 017b9b15193d2278d67439bb863de6c5dc6a4989 Mon Sep 17 00:00:00 2001
From: jblum
Date: Sun, 24 May 2009 00:21:33 +0000
Subject: 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
---
grc/data/platforms/python/blocks/random_source_x.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'grc/data/platforms/python/blocks/random_source_x.xml')
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 @@
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
--
cgit