@@ -629,7 +629,7 class Decoder(Operation): | |||||
629 | return ndatadec, datadec |
|
629 | return ndatadec, datadec | |
630 |
|
630 | |||
631 | def convolutionInFreqOpt(self, data): |
|
631 | def convolutionInFreqOpt(self, data): | |
632 | ini = time.time() |
|
632 | ||
633 | fft_code = self.fft_code[self.__profIndex].reshape(1,-1) |
|
633 | fft_code = self.fft_code[self.__profIndex].reshape(1,-1) | |
634 |
|
634 | |||
635 | data = cfunctions.decoder(fft_code, data) |
|
635 | data = cfunctions.decoder(fft_code, data) | |
@@ -637,8 +637,6 class Decoder(Operation): | |||||
637 | datadec = data[:,:-self.nBaud+1] |
|
637 | datadec = data[:,:-self.nBaud+1] | |
638 | ndatadec = self.__nHeis - self.nBaud + 1 |
|
638 | ndatadec = self.__nHeis - self.nBaud + 1 | |
639 |
|
639 | |||
640 | print time.time() - ini, "prof = %d, nCode=%d" %(self.__profIndex, self.nCode) |
|
|||
641 |
|
||||
642 | if self.__profIndex == self.nCode-1: |
|
640 | if self.__profIndex == self.nCode-1: | |
643 | self.__profIndex = 0 |
|
641 | self.__profIndex = 0 | |
644 | return ndatadec, datadec |
|
642 | return ndatadec, datadec | |
@@ -667,7 +665,7 class Decoder(Operation): | |||||
667 | return ndatadec, datadec |
|
665 | return ndatadec, datadec | |
668 |
|
666 | |||
669 | def run(self, dataOut, code=None, nCode=None, nBaud=None, mode = 0): |
|
667 | def run(self, dataOut, code=None, nCode=None, nBaud=None, mode = 0): | |
670 |
|
668 | ini = time.time() | ||
671 | if not self.__isConfig: |
|
669 | if not self.__isConfig: | |
672 |
|
670 | |||
673 | if code == None: |
|
671 | if code == None: | |
@@ -699,7 +697,8 class Decoder(Operation): | |||||
699 | dataOut.heightList = dataOut.heightList[0:ndatadec] |
|
697 | dataOut.heightList = dataOut.heightList[0:ndatadec] | |
700 |
|
698 | |||
701 | dataOut.flagDecodeData = True #asumo q la data no esta decodificada |
|
699 | dataOut.flagDecodeData = True #asumo q la data no esta decodificada | |
702 |
|
700 | |||
|
701 | print time.time() - ini, "prof = %d, nCode=%d" %(self.__profIndex, self.nCode) | |||
703 | # dataOut.flagDeflipData = True #asumo q la data no esta sin flip |
|
702 | # dataOut.flagDeflipData = True #asumo q la data no esta sin flip | |
704 |
|
703 | |||
705 |
|
704 |
General Comments 0
You need to be logged in to leave comments.
Login now