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