def get_features(self, sensors, timestamp_reference):
        sensor = sensors[0]
        center_timestamp_index = (np.abs(timestamp_reference - sensor.timestamp)).argmin()

        features = []

        for i in range(0, len(sensors)):
            sensor = sensors[i]
            sensor.normalize()

            if sensor.mean_signal is None:
                x_sample = self.get_data_slice(sensor.x, center_timestamp_index)
                y_sample = self.get_data_slice(sensor.y, center_timestamp_index)
                z_sample = self.get_data_slice(sensor.z, center_timestamp_index)

                features.append(x_sample if not self.use_statistical_features else self.get_statistical_features(x_sample))
                features.append(y_sample if not self.use_statistical_features else self.get_statistical_features(y_sample))
                features.append(z_sample if not self.use_statistical_features else self.get_statistical_features(z_sample))
            else:
                mean_sample = self.get_data_slice(sensor.mean_signal, center_timestamp_index)
                features.append(mean_sample if not self.use_statistical_features else self.get_statistical_features(mean_sample))

        return features
dataset/ETHPy150Open tonybeltramelli/Deep-Spying/server/analytics/modules/feature/FeatureExtractor.py/FeatureExtractor.get_features/swapped operands of `-`