summaryrefslogtreecommitdiff
path: root/gr-input/python/gr_ramp_source.py
diff options
context:
space:
mode:
authormanojgudi2014-02-26 14:53:39 +0530
committermanojgudi2014-02-26 14:53:39 +0530
commite3607a46082dae19ccf03b427f4bd8b65da13432 (patch)
tree15b0fbb5f0a79173fef7d5c59f70b766072bec8c /gr-input/python/gr_ramp_source.py
parent35c6d61af28f2eddfc13c414c01a307e1adeac2f (diff)
downloadgnuradio-e3607a46082dae19ccf03b427f4bd8b65da13432.tar.gz
gnuradio-e3607a46082dae19ccf03b427f4bd8b65da13432.tar.bz2
gnuradio-e3607a46082dae19ccf03b427f4bd8b65da13432.zip
Fix for gr-input: Make output a list_Type
Diffstat (limited to 'gr-input/python/gr_ramp_source.py')
-rw-r--r--gr-input/python/gr_ramp_source.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-input/python/gr_ramp_source.py b/gr-input/python/gr_ramp_source.py
index 687ffb957..574f9f70b 100644
--- a/gr-input/python/gr_ramp_source.py
+++ b/gr-input/python/gr_ramp_source.py
@@ -21,7 +21,7 @@ class ramp(gras.Block):
def work(self, input_items, output_items):
- out = output_items[0][0]
+ out = output_items[0][0:1]
input_stream = input_items[0][0]
if self.flag:
@@ -37,7 +37,7 @@ class ramp(gras.Block):
else:
self.i = self.i + 1
- out =self.offset + self.i*input_stream*self.slope
+ out[:1] =self.offset + self.i*input_stream*self.slope
print "OUT", out