##// END OF EJS Templates
GUI: Bug fixed when *Read from header* is selected...
Miguel Valdez -
r655:9d147099e1e8
parent child
Show More
@@ -844,6 +844,7 class BasicWindow(QMainWindow, Ui_BasicWindow):
844 844
845 845 if self.volOpCebDecodification.isChecked():
846 846 name_operation = 'Decoder'
847 opObj = puObj.addOperation(name=name_operation, optype='other')
847 848
848 849 #User defined
849 850 nBaud = None
@@ -855,9 +856,7 class BasicWindow(QMainWindow, Ui_BasicWindow):
855 856 except:
856 857 code_tmp = []
857 858
858 if len(code_tmp) < 1:
859 self.console.append("Please write a right value for Code (Exmaple: [1,1,-1], [1,-1,1])")
860 return 0
859 if len(code_tmp) > 0:
861 860
862 861 if type(code_tmp) not in (tuple, list):
863 862 self.console.append("Please write a right value for Code (Exmaple: [1,1,-1], [1,-1,1])")
@@ -880,8 +879,6 class BasicWindow(QMainWindow, Ui_BasicWindow):
880 879 self.console.append("Please write a right value for Code")
881 880 return 0
882 881
883 opObj = puObj.addOperation(name='Decoder', optype='other')
884
885 882 code = code.replace("(", "")
886 883 code = code.replace(")", "")
887 884 code = code.replace("[", "")
@@ -4158,6 +4155,8 class BasicWindow(QMainWindow, Ui_BasicWindow):
4158 4155 if projectParms.expLabel:
4159 4156 readUnitConfObj.addParameter(name="expLabel", value=projectParms.expLabel)
4160 4157
4158 readUnitConfObj.addOperation(name="printInfo")
4159
4161 4160 if projectParms.datatype == "USRP":
4162 4161 readUnitConfObj = projectObjView.addReadUnit(datatype=projectParms.datatype,
4163 4162 path=projectParms.dpath,
@@ -4204,6 +4203,8 class BasicWindow(QMainWindow, Ui_BasicWindow):
4204 4203 if projectParms.expLabel:
4205 4204 readUnitConfObj.addParameter(name="expLabel", value=projectParms.expLabel)
4206 4205
4206 readUnitConfObj.addOperation(name="printInfo")
4207
4207 4208 if projectParms.datatype == "USRP":
4208 4209 readUnitConfObj.update(datatype=projectParms.datatype,
4209 4210 path=projectParms.dpath,
@@ -594,7 +594,7 class JRODataReader(JRODataIO):
594 594 datetimeList.append(thisDatetime)
595 595
596 596 if not(filenameList):
597 print "[Reading] Any file was found int time range %s - %s" %(startTime.ctime(), endTime.ctime())
597 print "[Reading] Any file was found int time range %s - %s" %(datetime.datetime.combine(startDate,startTime).ctime(), datetime.datetime.combine(endDate,endTime).ctime())
598 598 return None, None
599 599
600 600 print "[Reading] %d file(s) was(were) found in time range: %s - %s" %(len(filenameList), startTime, endTime)
@@ -562,6 +562,10 class Decoder(Operation):
562 562 self.__nProfiles = dataOut.nProfiles
563 563 self.__nHeis = dataOut.nHeights
564 564
565 if self.__nHeis < self.nBaud:
566 print 'IOError: Number of heights (%d) should be greater than number of bauds (%d)' %(self.__nHeis, self.nBaud)
567 raise IOError, 'Number of heights (%d) should be greater than number of bauds (%d)' %(self.__nHeis, self.nBaud)
568
565 569 if dataOut.flagDataAsBlock:
566 570
567 571 self.ndatadec = self.__nHeis #- self.nBaud + 1
General Comments 0
You need to be logged in to leave comments. Login now