[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r11112 - gnuradio/trunk/grc/data/platforms/python/bloc
From: |
jblum |
Subject: |
[Commit-gnuradio] r11112 - gnuradio/trunk/grc/data/platforms/python/blocks |
Date: |
Sat, 23 May 2009 18:21:34 -0600 (MDT) |
Author: jblum
Date: 2009-05-23 18:21:33 -0600 (Sat, 23 May 2009)
New Revision: 11112
Modified:
gnuradio/trunk/grc/data/platforms/python/blocks/random_source_x.xml
Log:
cast the numpy array to int, seems we cant pass numpy arrays any more
Modified: gnuradio/trunk/grc/data/platforms/python/blocks/random_source_x.xml
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/blocks/random_source_x.xml
2009-05-23 23:36:08 UTC (rev 11111)
+++ gnuradio/trunk/grc/data/platforms/python/blocks/random_source_x.xml
2009-05-24 00:21:33 UTC (rev 11112)
@@ -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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r11112 - gnuradio/trunk/grc/data/platforms/python/blocks,
jblum <=