diff --git a/.gitignore/error correction b/.gitignore/error correction index 6ad7ba1..bee4f6e 100644 --- a/.gitignore/error correction +++ b/.gitignore/error correction @@ -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