summaryrefslogtreecommitdiff
path: root/gr-scigen/python
diff options
context:
space:
mode:
authormanojgudi2013-12-26 21:17:49 +0530
committermanojgudi2013-12-26 21:17:49 +0530
commitc15e3c60add01c2af7ebab049e97e245e53792a8 (patch)
tree2e0455978c350def66f28a00a68d69d0646259e5 /gr-scigen/python
parentcb0bc2512a930e1a09633d6e373c0d5c43f30c79 (diff)
downloadgnuradio-c15e3c60add01c2af7ebab049e97e245e53792a8.tar.gz
gnuradio-c15e3c60add01c2af7ebab049e97e245e53792a8.tar.bz2
gnuradio-c15e3c60add01c2af7ebab049e97e245e53792a8.zip
Code cleanup of gr-controls and gr-scigen
Incomplete > Adding qa_csim.py > Cleanup in qa_dsim.py
Diffstat (limited to 'gr-scigen/python')
-rw-r--r--gr-scigen/python/generic.py5
-rw-r--r--gr-scigen/python/scigen.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/gr-scigen/python/generic.py b/gr-scigen/python/generic.py
index f7807fdbc..50190b454 100644
--- a/gr-scigen/python/generic.py
+++ b/gr-scigen/python/generic.py
@@ -47,7 +47,7 @@ class generic(gras.Block):
out_eval_string = out_eval_string + (str(input_items[i][:self.n].tolist())) + "," # Replace 10spaces with a singe comma
out_eval_string = out_eval_string.rstrip(",") + ')")'
- print "STRING ",str(out_eval_string)
+ print "From Scilab",str(out_eval_string)
# for functions like sin
if n_input_items == 1 and self.n == 1:
@@ -55,8 +55,7 @@ class generic(gras.Block):
else:
output_items[0] = eval(out_eval_string)
- print "OUT",output_items[0]
- #print 'SIZE,', output_items[0].size
+ print "OUT ",output_items[0]
#Write a for loop for n_inputs
for i in range(n_input_items):
diff --git a/gr-scigen/python/scigen.py b/gr-scigen/python/scigen.py
index ca5556bc8..44075b1f3 100644
--- a/gr-scigen/python/scigen.py
+++ b/gr-scigen/python/scigen.py
@@ -1 +1,3 @@
+#!/usr/bin/python
+# Can import other python files
from generic import *