We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546c39c commit 4b3e90fCopy full SHA for 4b3e90f
commpy/channelcoding/tests/test_ldpc.py
@@ -7,11 +7,15 @@
7
from commpy.channelcoding.ldpc import get_ldpc_code_params, ldpc_bp_decode
8
from commpy.utilities import hamming_dist
9
10
+import os
11
+
12
class TestLDPCCode(object):
13
14
@classmethod
15
def setup_class(cls):
- ldpc_design_file_1 = "channelcoding/designs/ldpc/gallager/96.33.964.txt"
16
+ dir = os.path.dirname(__file__)
17
+ ldpc_design_file_1 = os.path.join(dir, '../designs/ldpc/gallager/96.33.964.txt')
18
+ #ldpc_design_file_1 = "../designs/ldpc/gallager/96.33.964.txt"
19
cls.ldpc_code_params = get_ldpc_code_params(ldpc_design_file_1)
20
21
0 commit comments