davidfischer-ch / pytoolbox

Toolbox for Python scripts.
Other
41 stars 15 forks source link

fixed matrixD update #30

Closed aa6moham closed 7 years ago

aa6moham commented 7 years ago

If the FEC packet is of type row, fec.D() returns None, which is not a valid integer. This oversight also causes the program to crash due to invalid TypeError during print.

davidfischer-ch commented 7 years ago

I am closing this PR, can you make a new PR with the following logic instead:

Replace if fec.D != 0: by more "pythonic" if fec.D:, same for fec.L. Thanks!