@@ -1,3 +1,4 | |||||
|
1 | import sys | |||
1 | import numpy |
|
2 | import numpy | |
2 |
|
3 | |||
3 | from jroproc_base import ProcessingUnit, Operation |
|
4 | from jroproc_base import ProcessingUnit, Operation | |
@@ -646,6 +647,10 class Decoder(Operation): | |||||
646 | self.setup(code, osamp, dataOut) |
|
647 | self.setup(code, osamp, dataOut) | |
647 |
|
648 | |||
648 | self.isConfig = True |
|
649 | self.isConfig = True | |
|
650 | ||||
|
651 | if mode == 3: | |||
|
652 | sys.stderr.write("Decoder Warning: mode=%d is not valid, using mode=0\n" %mode) | |||
|
653 | ||||
649 |
|
654 | |||
650 | if self.code is None: |
|
655 | if self.code is None: | |
651 | print "Fail decoding: Code is not defined." |
|
656 | print "Fail decoding: Code is not defined." | |
@@ -658,7 +663,6 class Decoder(Operation): | |||||
658 | Decoding when data have been read as block, |
|
663 | Decoding when data have been read as block, | |
659 | """ |
|
664 | """ | |
660 | if mode == 3: |
|
665 | if mode == 3: | |
661 | sys.stderr.write("Decoder Warning: mode=%d is not valid, using mode=0\n" %mode) |
|
|||
662 | mode = 0 |
|
666 | mode = 0 | |
663 |
|
667 | |||
664 | if mode == 0: |
|
668 | if mode == 0: |
General Comments 0
You need to be logged in to leave comments.
Login now