summaryrefslogtreecommitdiff
path: root/gr-trellis/src/examples/python/test_sccc_hard.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-trellis/src/examples/python/test_sccc_hard.py')
-rwxr-xr-xgr-trellis/src/examples/python/test_sccc_hard.py7
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 ()