From 68ec3c40eb13483b70b75aa2dd08c969fd7a68d6 Mon Sep 17 00:00:00 2001 From: Katherine A Miller Date: Fri, 9 Nov 2018 12:57:08 -0500 Subject: [PATCH] Update error correction --- .gitignore/error correction | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitignore/error correction b/.gitignore/error correction index ee2a128..4d67fe9 100644 --- a/.gitignore/error correction +++ b/.gitignore/error correction @@ -155,3 +155,11 @@ def repairFrames(frames, parity): print('Frame', frames.index(frame), 'has been repaired') else: print('Frame', frames.index(frame), 'could not be repaired') + +def stripFrames(frames): + """returns an 8x8 payload for each frame""" + newFrames = [] + for frame in frames: + (payload, parityColumn, parityRow) = splitFrame(frame) + newFrames.append(payload) + return newFrames