Back to where I was before I deleted everything!

This commit is contained in:
David Lenfesty 2019-08-25 15:50:46 -06:00
parent 9b1353b4ef
commit 9b98f5e88f
2 changed files with 2 additions and 2 deletions

View File

@ -50,6 +50,6 @@ if __name__ == '__main__':
to_serialise = qam.demodulate(to_decode) to_serialise = qam.demodulate(to_decode)
data = serialise(to_serialise) data = serialise(16, to_serialise)
print(data) print(data)

2
qam.py
View File

@ -34,7 +34,7 @@ def demodulate(in_data):
out_data = np.ndarray((len(in_data), len(in_data[0])), dtype=np.uint8) out_data = np.ndarray((len(in_data), len(in_data[0])), dtype=np.uint8)
# Just pull the constellation array data out # Just pull the constellation array data out
constellation = { x for x in qam_demapping_table.keys() } constellation = [ x for x in qam_demapping_table.keys() ]
for i in range(len(in_data)): for i in range(len(in_data)):
for j in range(len(in_data[0])): for j in range(len(in_data[0])):