@@ -665,6 +665,9 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 | ||||
|
669 | if not self.__isConfig: | |||
|
670 | ||||
668 | if code == None: |
|
671 | if code == None: | |
669 | code = dataOut.code |
|
672 | code = dataOut.code | |
670 | else: |
|
673 | else: | |
@@ -676,7 +679,6 class Decoder(Operation): | |||||
676 | if code == None: |
|
679 | if code == None: | |
677 | return 1 |
|
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 == |
|
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