From 4c759c2c1a006cedc66a3f6077a337cb5c3eeba5 Mon Sep 17 00:00:00 2001 From: Katherine A Miller Date: Tue, 6 Nov 2018 21:49:20 -0500 Subject: [PATCH] Update error correction --- .gitignore/error correction | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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