Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions hashes/hamming_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def emitter_converter(size_par, data):
data_ord.append(None)

# Calculates parity
qtd_bp = 0 # parity bit counter
for bp in range(1, size_par + 1):
# Bit counter one for a given parity
cont_bo = 0
Expand All @@ -133,8 +132,6 @@ def emitter_converter(size_par, data):
cont_bo += 1
parity.append(cont_bo % 2)

qtd_bp += 1

# Mount the message
cont_bp = 0 # parity bit counter
for x in range(size_par + len(data)):
Expand Down Expand Up @@ -208,7 +205,6 @@ def receptor_converter(size_par, data):
data_ord.append(None)

# Calculates parity
qtd_bp = 0 # parity bit counter
for bp in range(1, size_par + 1):
# Bit counter one for a certain parity
cont_bo = 0
Expand All @@ -222,8 +218,6 @@ def receptor_converter(size_par, data):
cont_bo += 1
parity.append(str(cont_bo % 2))

qtd_bp += 1

# Mount the message
cont_bp = 0 # Parity bit counter
for x in range(size_par + len(data_output)):
Expand Down
Loading