summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2015-09-23 09:59:38 -0400
committerTom Rondeau <tom@trondeau.com>2015-09-23 09:59:38 -0400
commitad3a02f6c829e9b3ba9ebaef437e1a6087978855 (patch)
tree00a264d6354b1f78db1bd7f75c919d905cb7e996
parentf28eef2874ede4de9d62d22488e52df29b53ec04 (diff)
fec: polar: Installing more FEC examples.
Also some minor formatting.
-rw-r--r--gr-fec/examples/CMakeLists.txt6
-rw-r--r--gr-fec/python/fec/polar/polar_channel_construction14
2 files changed, 15 insertions, 5 deletions
diff --git a/gr-fec/examples/CMakeLists.txt b/gr-fec/examples/CMakeLists.txt
index 88d6d5c069..b396ba625b 100644
--- a/gr-fec/examples/CMakeLists.txt
+++ b/gr-fec/examples/CMakeLists.txt
@@ -32,6 +32,12 @@ install(
fecapi_async_packed_decoders.grc
fecapi_tagged_decoders.grc
fecapi_tagged_encoders.grc
+ fecapi_cc_decoders.grc
+ fecapi_polar_async_packed_decoders.grc
+ fecapi_polar_decoders.grc
+ fecapi_polar_encoders.grc
+ polar_ber_curve_gen.grc
+ polar_code_example.grc
tpc_ber_curve_gen.grc
DESTINATION ${GR_PKG_FEC_EXAMPLES_DIR}
COMPONENT "fec_python"
diff --git a/gr-fec/python/fec/polar/polar_channel_construction b/gr-fec/python/fec/polar/polar_channel_construction
index b69ad3bbfb..0aca9c7ddc 100644
--- a/gr-fec/python/fec/polar/polar_channel_construction
+++ b/gr-fec/python/fec/polar/polar_channel_construction
@@ -33,10 +33,14 @@ def setup_parser():
parser.add_option("-h", "--help", action="help", help="Displays this help message.")
- parser.add_option("-c", "--channel", action="store", type="string", dest="channel", help="specify channel, currently BEC or BSC (default='BEC')", default='BEC')
- parser.add_option("-b", "--blocksize", action="store", type="int", dest="block_size", help="specify block size of polar code (default=16)", default=16)
- parser.add_option("-s", "--desgin-snr", action="store", type="float", dest="design_snr", help="specify design SNR of polar code (default=0.0)", default=0.0)
- parser.add_option("-k", "--mu", action="store", type="int", dest="mu", help="specify block size of polar code (default=2)", default=2)
+ parser.add_option("-c", "--channel", action="store", type="string", dest="channel",
+ help="specify channel, currently BEC or BSC (default='BEC')", default='BEC')
+ parser.add_option("-b", "--blocksize", action="store", type="int", dest="block_size",
+ help="specify block size of polar code (default=16)", default=16)
+ parser.add_option("-s", "--desgin-snr", action="store", type="float", dest="design_snr",
+ help="specify design SNR of polar code (default=0.0)", default=0.0)
+ parser.add_option("-k", "--mu", action="store", type="int", dest="mu",
+ help="specify block size of polar code (default=2)", default=2)
return parser
@@ -69,4 +73,4 @@ if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
- pass \ No newline at end of file
+ pass