@@ -638,19 +638,18 class Decoder(Operation): | |||
|
638 | 638 | return ndatadec, datadec |
|
639 | 639 | |
|
640 | 640 | def run(self, dataOut, code=None, nCode=None, nBaud=None, mode = 0): |
|
641 | ||
|
642 | if not self.__isConfig: | |
|
643 | if code == None: | |
|
641 | if code == None: | |
|
644 | 642 | code = dataOut.code |
|
645 |
|
|
|
646 |
|
|
|
647 |
|
|
|
648 |
|
|
|
649 |
|
|
|
643 | else: | |
|
644 | code = numpy.array(code).reshape(nCode,nBaud) | |
|
645 | dataOut.code = code | |
|
646 | dataOut.nCode = nCode | |
|
647 | dataOut.nBaud = nBaud | |
|
650 | 648 | |
|
651 | 649 | if code == None: |
|
652 | 650 | return 1 |
|
653 | 651 | |
|
652 | if not self.__isConfig: | |
|
654 | 653 | self.setup(code) |
|
655 | 654 | self.__isConfig = True |
|
656 | 655 |
General Comments 0
You need to be logged in to leave comments.
Login now