Skip to content

Commit 4b3e90f

Browse files
committed
Updated to use the LDPC code design file path correctly.
1 parent 546c39c commit 4b3e90f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

commpy/channelcoding/tests/test_ldpc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@
77
from commpy.channelcoding.ldpc import get_ldpc_code_params, ldpc_bp_decode
88
from commpy.utilities import hamming_dist
99

10+
import os
11+
1012
class TestLDPCCode(object):
1113

1214
@classmethod
1315
def setup_class(cls):
14-
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"
1519
cls.ldpc_code_params = get_ldpc_code_params(ldpc_design_file_1)
1620

1721
@classmethod

0 commit comments

Comments
 (0)