From 91c009419a7fa71b5a93e6f15ad08d14511fbf3f Mon Sep 17 00:00:00 2001 From: Tim Fischer Date: Fri, 19 Jan 2024 18:17:37 +0100 Subject: [PATCH] data_utils: Remove unused `bytes_to_floats` again --- util/sim/data_utils.py | 12 ------------ 1 file changed, 12 deletions(-) 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('