Skip to content

Commit

Permalink
Update error correction
Browse files Browse the repository at this point in the history
  • Loading branch information
kam17049 authored Nov 7, 2018
1 parent 1dbdd36 commit c8ea194
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore/error correction
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,14 @@ def string2frames(string, fill):
b = string2bin(n)
frames.append(b)
return frames

def appendParityColumn(frame, parity):
newFrame = []
for n in frame:
F1 = e.appendParity(n, parity)
newFrame.append(F1)
return newFrame

def transpose(lst):
lst = list(map(list, zip(*lst)))
return lst

0 comments on commit c8ea194

Please sign in to comment.