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