summaryrefslogtreecommitdiff
path: root/gr-trellis/src/examples/fsm_utils.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-09-23 17:20:46 -0400
committerTom Rondeau <trondeau@vt.edu>2011-09-23 17:20:46 -0400
commitc802032c0198c872ee09b1ec93ce7531f654715c (patch)
tree957a783d036aa9b84693ba0d8ce3bf0312052c5c /gr-trellis/src/examples/fsm_utils.py
parent801465fe8dbac9905ac74aeb5c3dc308d3328d98 (diff)
trellis: fixed import statements; fixed test_cpm to convert numpy stuff to types GNU Radio blocks can handle.
Diffstat (limited to 'gr-trellis/src/examples/fsm_utils.py')
-rwxr-xr-xgr-trellis/src/examples/fsm_utils.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gr-trellis/src/examples/fsm_utils.py b/gr-trellis/src/examples/fsm_utils.py
index e3426637cd..e9243f8999 100755
--- a/gr-trellis/src/examples/fsm_utils.py
+++ b/gr-trellis/src/examples/fsm_utils.py
@@ -26,10 +26,15 @@ import math
import sys
import operator
import numpy
-import scipy.linalg
from gnuradio import trellis
+try:
+ import scipy.linalg
+except ImportError:
+ print "Error: Program requires scipy (see: www.scipy.org)."
+ sys.exit(1)
+
######################################################################