Skip to content

Commit

Permalink
fix nrPolarDecode() and nrBCHDecode() (#69)
Browse files Browse the repository at this point in the history
* fix nrPolarDecode(), remove hard-coded K=56
* fix nrBCHDecode(), set correct K value
* bump version to 0.3.4
  • Loading branch information
catkira authored Mar 8, 2024
1 parent 8a317e8 commit a692d32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py3gpp/nrBCHDecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def nrBCHDecode(softbits, L, lssb=None, ncellid=None):
K = 32
K = 32 + 24
E = 864
L = 8
N = 512
Expand Down
3 changes: 1 addition & 2 deletions py3gpp/nrPolarDecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ def nrPolarDecode(rec, K, E, L, padCRC=False, nmax=9, iil=True, CRClen=24):
if nmax not in (9, 10):
print("Error: invalid nmax value!")
exit()

K = 56
# TODO: what to do with E argument, it is currently deducted from rec shape
N = 512
frozen_pos, info_pos = generate_5g_ranking(K, N)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
py3gpp = ["codes/*.csv"]

[project]
version = "0.3.3"
version = "0.3.4"
authors = [
{name = "Benjamin Menküc", email = "[email protected]"},
]
Expand Down

0 comments on commit a692d32

Please sign in to comment.