diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-11-06 18:36:47 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-11-06 18:36:47 -0500 |
commit | f86c6e0462f8208106d41e4be02b59c66ce50e5a (patch) | |
tree | b84d61d6631c3e90bcb081d0282a5460668e510c /gr-trellis/src/examples/python/test_sccc_hard.py | |
parent | fd110bdbbe8bc40781c34f33c70deec5b7931109 (diff) |
analog: removing gr-analog as a required dependency when not actually necessary.
Examples that use gr-analog test for it first.
Diffstat (limited to 'gr-trellis/src/examples/python/test_sccc_hard.py')
-rwxr-xr-x | gr-trellis/src/examples/python/test_sccc_hard.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gr-trellis/src/examples/python/test_sccc_hard.py b/gr-trellis/src/examples/python/test_sccc_hard.py index f55485550b..b75a07b8b0 100755 --- a/gr-trellis/src/examples/python/test_sccc_hard.py +++ b/gr-trellis/src/examples/python/test_sccc_hard.py @@ -2,13 +2,18 @@ from gnuradio import gr from gnuradio import trellis, digital -from gnuradio import analog from gnuradio import eng_notation import math import sys import random import fsm_utils +try: + from gnuradio import analog +except ImportError: + sys.stderr.write("Error: Program requires gr-analog.\n") + sys.exit(1) + def run_test (fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed): tb = gr.top_block () |