def get_data_slice(self, data, center_index, window_size=50):
        left_samples = data[center_index - (window_size / 2):center_index]
        right_samples = data[center_index:center_index + (window_size / 2)]

        return np.hstack((left_samples, right_samples))
dataset/ETHPy150Open tonybeltramelli/Deep-Spying/server/analytics/modules/feature/FeatureExtractor.py/FeatureExtractor.get_data_slice/original