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 c8ea194 commit 4c759c2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .gitignore/error correction
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,15 @@ def appendParityColumn(frame, parity):

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

def appendParityRow(frame, parity):
tFrame = transpose(frame)
newFrame = appendParityColumn(tFrame, parity)
tFrame2 = transpose(newFrame)
return tFrame2

def appendParityToFrame(frame, parity):
frame1 = appendParityColumn(frame, parity)
frame2 = appendParityRow(frame1, parity)
return frame2

0 comments on commit 4c759c2

Please sign in to comment.