##// END OF EJS Templates
modo 2 decodificacion
Miguel Valdez -
r305:10a7778d71da
parent child
Show More
@@ -665,18 +665,20 class Decoder(Operation):
665 return ndatadec, datadec
665 return ndatadec, datadec
666
666
667 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):
668 if code == None:
668
669 code = dataOut.code
669 if not self.__isConfig:
670 else:
671 code = numpy.array(code).reshape(nCode,nBaud)
672 dataOut.code = code
673 dataOut.nCode = nCode
674 dataOut.nBaud = nBaud
675
670
676 if code == None:
671 if code == None:
677 return 1
672 code = dataOut.code
673 else:
674 code = numpy.array(code).reshape(nCode,nBaud)
675 dataOut.code = code
676 dataOut.nCode = nCode
677 dataOut.nBaud = nBaud
678
679 if code == None:
680 return 1
678
681
679 if not self.__isConfig:
680 self.setup(code, dataOut.data.shape)
682 self.setup(code, dataOut.data.shape)
681 self.__isConfig = True
683 self.__isConfig = True
682
684
@@ -687,7 +689,7 class Decoder(Operation):
687 print "This function is not implemented"
689 print "This function is not implemented"
688 # ndatadec, datadec = self.convolutionInTime(dataOut.data)
690 # ndatadec, datadec = self.convolutionInTime(dataOut.data)
689
691
690 if mode == 3:
692 if mode == 2:
691 ndatadec, datadec = self.convolutionInFreqOpt(dataOut.data)
693 ndatadec, datadec = self.convolutionInFreqOpt(dataOut.data)
692
694
693 dataOut.data = datadec
695 dataOut.data = datadec
General Comments 0
You need to be logged in to leave comments. Login now