From 1dbdd368306d7256229e6c06aede49f17e4ccff3 Mon Sep 17 00:00:00 2001 From: Katherine A Miller Date: Sun, 4 Nov 2018 21:20:34 -0500 Subject: [PATCH] Update error correction --- .gitignore/error correction | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore/error correction b/.gitignore/error correction index f36df7a..9b32ef8 100644 --- a/.gitignore/error correction +++ b/.gitignore/error correction @@ -32,7 +32,8 @@ def segmentString(string, fill): s2 += fill s1.append(s2) return s1 - + + def printFrames(frames): frameN = 0 for frame in frames: @@ -45,4 +46,10 @@ def printFrames(frames): print() - +def string2frames(string, fill): + frames = [] + newString = segmentString(string, fill) + for n in newString: + b = string2bin(n) + frames.append(b) + return frames