From c8ea1943bc2a617a77b2882ae809be4e37e2dd2f Mon Sep 17 00:00:00 2001 From: Katherine A Miller Date: Tue, 6 Nov 2018 21:34:33 -0500 Subject: [PATCH] Update error correction --- .gitignore/error correction | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitignore/error correction b/.gitignore/error correction index 9b32ef8..6ad7ba1 100644 --- a/.gitignore/error correction +++ b/.gitignore/error correction @@ -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