diff --git a/util/sim/data_utils.py b/util/sim/data_utils.py index 11c6dc9a60..2ed260d3f1 100644 --- a/util/sim/data_utils.py +++ b/util/sim/data_utils.py @@ -68,18 +68,6 @@ def bytes_to_doubles(byte_array): doubles.append(double) return doubles -def bytes_to_floats(byte_array): - float_size = struct.calcsize('f') # Size of a float in bytes - num_floats = len(byte_array) // float_size - - # Unpack the byte array into a list of doubles - floats = [] - for i in range(num_floats): - float_bytes = byte_array[i * float_size:(i + 1) * float_size] - float = struct.unpack('