📄 __init__.py
字号:
"""The tests modules contain various tests both to insure that theprogram is running correctly as well as to simulate codes ongraphs with various parameters and decoding algorithms.Tests for channel coding are in the sub-module channel_codingwhile tests for quantization are in the sub-module quantization.The function DoRegressionTests() provided by this moduleruns various regression tests to insure that everything is workingcorrectly."""import sysdef DoRegressionTests(): sys.stdout.write('Doing quantization tests:\n') sys.stdout.flush() from pycodes.tests.quantization.BEC import bec_quant sys.stdout.write('Doing channel coding tests:\n') sys.stdout.flush() from pycodes.tests.channel_coding.BSC import cmp_exact_apps_on_tree from pycodes.tests.channel_coding.BSC import regress from pycodes.tests.channel_coding.BEC import regress
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -