-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
def transform_data(data,l):
res = []
for i,file in enumerate(data):
tmp = []
res_tmp = []
length = len(file)
for key in file:
bit = bin(key)
bit = bit[2:]
tmp.extend(bit)
for i,_ in enumerate(tmp):
bit = tmp[il:il+l]
bit = ''.join(bit)
bit = bit.zfill(8)
res_tmp.append(bit)
tmp = [int(hex, 2) for hex in tmp]
tmp = tmp[:length]
res.append(tmp)
tmp = []
return res
Why is res_tmp not utilized in the subsequent operations, resulting in the entire code's functionality being reduced to expanding the input binary and then truncating it?
Metadata
Metadata
Assignees
Labels
No labels