From c802032c0198c872ee09b1ec93ce7531f654715c Mon Sep 17 00:00:00 2001 From: Tom Rondeau <trondeau@vt.edu> Date: Fri, 23 Sep 2011 17:20:46 -0400 Subject: trellis: fixed import statements; fixed test_cpm to convert numpy stuff to types GNU Radio blocks can handle. --- gr-trellis/src/examples/fsm_utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gr-trellis/src/examples/fsm_utils.py') 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) + ###################################################################### -- cgit v1.2.3