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