##// END OF EJS Templates
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]
ProfileToChannels this is a new Operation to get data with dimensions [nchannels,nsamples]

File last commit:

r304:e57b3a4fabda
r501:0e91e796067a
Show More
cfunctions.pyx
9 lines | 278 B | text/x-cython | CythonLexer
import numpy
cimport numpy
def decoder(numpy.ndarray[numpy.complex_t, ndim=2] fft_code, numpy.ndarray[numpy.complex_t, ndim=2] data):
fft_data = numpy.fft.fft(data, axis=1)
conv = fft_data*fft_code
data = numpy.fft.ifft(conv, axis=1)
return data