bch icon indicating copy to clipboard operation
bch copied to clipboard

It fails to generate codes for the t=1 cases.

Open dj-on-github opened this issue 3 years ago • 0 comments

I tried to generate a list of generator polynomials. It worked except for the t=1 cases. Specifically: (n,k,t) (7,4,1) (15,11,1) (31,26,1) (63,57,1), (255,247,1) (511,502,1), (1023,1013,1)

./bch.py gen 7 4 1 code

Traceback (most recent call last): File "./bch.py", line 130, in generate(int(args['N']), int(args['B']), int(args['D']), args['CODE_FILE']) File "./bch.py", line 43, in generate r, g = bch_gen.gen() File "/home/dj/src/bch/bch/bchcodegenerator.py", line 37, in gen g_poly = g_poly.trunc(self.q) AttributeError: 'NoneType' object has no attribute 'trunc'

dj-on-github avatar May 28 '21 01:05 dj-on-github