def _my_trans(data):
 data_t = fft(data)
 data_t = np.concatenate([data_t[:, :, None], data_t[:, :, None]], axis=2)
 return (data_t, None)

def _my_trans ( data ) : data_t = fft ( data ) data_t = np . concatenate ( [ data_t [ : , : , None ] , data_t [ : , : , None ] ] , axis = 2 ) return ( data_t , None )
fft that adds an additional dimension by repeating result .