@@ -549,18 +549,32 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
549 | if self.volGraphCebshow.isChecked(): |
|
549 | if self.volGraphCebshow.isChecked(): | |
550 | opObj10=self.upObj.addOperation(name='Scope', optype='other') |
|
550 | opObj10=self.upObj.addOperation(name='Scope', optype='other') | |
551 | self.operObjList.append(opObj10) |
|
551 | self.operObjList.append(opObj10) | |
|
552 | self.idImag += 1 | |||
|
553 | opObj10.addParameter(name='id', value=int(self.idImag), format='int') | |||
|
554 | ||||
552 | channelList=self.volGraphChannelList.text() |
|
555 | channelList=self.volGraphChannelList.text() | |
553 |
|
|
556 | if self.volGraphChannelList.isModified(): | |
|
557 | try: | |||
|
558 | opObj10.addParameter(name='channelList', value=channelList, format='int') | |||
|
559 | except: | |||
|
560 | return 0 | |||
|
561 | ||||
|
562 | xvalue= self.volGraphfreqrange.text() | |||
|
563 | if self.volGraphfreqrange.isModified(): | |||
|
564 | xvalueList=xvalue.split(',') | |||
|
565 | try: | |||
|
566 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |||
|
567 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |||
|
568 | except: | |||
|
569 | return 0 | |||
554 | yvalue= self.volGraphHeightrange.text() |
|
570 | yvalue= self.volGraphHeightrange.text() | |
555 |
|
571 | if self.volGraphHeightrange.isModified(): | ||
556 | opObj1.addParameter(name='idfigure', value=int(self.idImag), format='int') |
|
572 | yvalueList=yvalue.split(",") | |
557 | opObj10.addParameter(name='channelList', value=channelList, format='int') |
|
573 | try: | |
558 | xvalueList=xvalue.split(',') |
|
574 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
559 |
opObj10.addParameter(name=' |
|
575 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
560 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') |
|
576 | except: | |
561 | yvalueList=yvalue.split(",") |
|
577 | return 0 | |
562 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') |
|
|||
563 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') |
|
|||
564 |
|
578 | |||
565 | if self.volGraphCebSave.isChecked(): |
|
579 | if self.volGraphCebSave.isChecked(): | |
566 | opObj10.addParameter(name='save', value='1', format='int') |
|
580 | opObj10.addParameter(name='save', value='1', format='int') | |
@@ -639,16 +653,20 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
639 | if self.__treeObjDict[i]==self.indexclick: |
|
653 | if self.__treeObjDict[i]==self.indexclick: | |
640 | if self.__upObjDict.has_key(i)==True: |
|
654 | if self.__upObjDict.has_key(i)==True: | |
641 | self.upObj=self.__upObjDict[i] |
|
655 | self.upObj=self.__upObjDict[i] | |
642 | value1=self.specOpnFFTpoints.text() |
|
656 | if self.datatype==".r": | |
643 | try: |
|
657 | value1=self.specOpnFFTpoints.text() | |
644 | value1=int(self.specOpnFFTpoints.text()) |
|
658 | try: | |
645 |
self. |
|
659 | value1=int(self.specOpnFFTpoints.text()) | |
646 | except: |
|
660 | self.tabgraphSpectra.setEnabled(True) | |
647 | self.tabgraphSpectra.setEnabled(False) |
|
661 | except: | |
648 |
self. |
|
662 | self.tabgraphSpectra.setEnabled(False) | |
649 |
self.console. |
|
663 | self.console.clear() | |
650 | return 0 |
|
664 | self.console.append("Please Write the number of FFT") | |
651 | self.upObj.addParameter(name='nFFTPoints',value=value1,format='int') |
|
665 | return 0 | |
|
666 | self.upObj.addParameter(name='nFFTPoints',value=value1,format='int') | |||
|
667 | else: | |||
|
668 | pass | |||
|
669 | ||||
652 | # self.operObjList.append(opObj10) |
|
670 | # self.operObjList.append(opObj10) | |
653 | if self.specOpCebCrossSpectra.isChecked(): |
|
671 | if self.specOpCebCrossSpectra.isChecked(): | |
654 | value2=self.specOppairsList.text() |
|
672 | value2=self.specOppairsList.text() | |
@@ -870,7 +888,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
870 | opObj10=self.upObj.addOperation(name='SpectraPlot',optype='other') |
|
888 | opObj10=self.upObj.addOperation(name='SpectraPlot',optype='other') | |
871 |
|
889 | |||
872 | self.idImag += 1 |
|
890 | self.idImag += 1 | |
873 |
opObj10.addParameter(name='id |
|
891 | opObj10.addParameter(name='id', value=int(self.idImag), format='int') | |
874 |
|
892 | |||
875 | channelList=self.specGgraphChannelList.text() |
|
893 | channelList=self.specGgraphChannelList.text() | |
876 | if self.specGgraphChannelList.isModified(): |
|
894 | if self.specGgraphChannelList.isModified(): | |
@@ -924,7 +942,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
924 |
|
942 | |||
925 |
|
943 | |||
926 | self.idImag += 1 |
|
944 | self.idImag += 1 | |
927 |
opObj10.addParameter(name='id |
|
945 | opObj10.addParameter(name='id', value=int(self.idImag), format='int') | |
928 |
|
946 | |||
929 | channelList=self.specGgraphChannelList.text() |
|
947 | channelList=self.specGgraphChannelList.text() | |
930 | if self.specGgraphChannelList.isModified(): |
|
948 | if self.specGgraphChannelList.isModified(): | |
@@ -974,7 +992,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
974 | opObj10=self.upObj.addOperation(name='RTIPlot',optype='other') |
|
992 | opObj10=self.upObj.addOperation(name='RTIPlot',optype='other') | |
975 |
|
993 | |||
976 | self.idImag += 1 |
|
994 | self.idImag += 1 | |
977 |
opObj10.addParameter(name='id |
|
995 | opObj10.addParameter(name='id', value=int(self.idImag), format='int') | |
978 |
|
996 | |||
979 | channelList=self.specGgraphChannelList.text() |
|
997 | channelList=self.specGgraphChannelList.text() | |
980 | if self.specGgraphChannelList.isModified(): |
|
998 | if self.specGgraphChannelList.isModified(): | |
@@ -1025,7 +1043,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1025 | opObj10.addParameter(name='phase_cmap', value='RdBu_r', format='str') |
|
1043 | opObj10.addParameter(name='phase_cmap', value='RdBu_r', format='str') | |
1026 |
|
1044 | |||
1027 | self.idImag += 1 |
|
1045 | self.idImag += 1 | |
1028 |
opObj10.addParameter(name='id |
|
1046 | opObj10.addParameter(name='id', value=int(self.idImag), format='int') | |
1029 |
|
1047 | |||
1030 | channelList=self.specGgraphChannelList.text() |
|
1048 | channelList=self.specGgraphChannelList.text() | |
1031 | if self.specGgraphChannelList.isModified(): |
|
1049 | if self.specGgraphChannelList.isModified(): | |
@@ -1074,7 +1092,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1074 | opObj10=self.upObj.addOperation(name='RTIfromNoise',optype='other') |
|
1092 | opObj10=self.upObj.addOperation(name='RTIfromNoise',optype='other') | |
1075 |
|
1093 | |||
1076 | self.idImag += 1 |
|
1094 | self.idImag += 1 | |
1077 |
opObj10.addParameter(name='id |
|
1095 | opObj10.addParameter(name='id', value=int(self.idImag), format='int') | |
1078 |
|
1096 | |||
1079 | channelList=self.specGgraphChannelList.text() |
|
1097 | channelList=self.specGgraphChannelList.text() | |
1080 | if self.specGgraphChannelList.isModified(): |
|
1098 | if self.specGgraphChannelList.isModified(): | |
@@ -1112,7 +1130,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1112 | if self.specGraphPowerprofile.isChecked(): |
|
1130 | if self.specGraphPowerprofile.isChecked(): | |
1113 | opObj10=self.upObj.addOperation(name='ProfilePlot',optype='other') |
|
1131 | opObj10=self.upObj.addOperation(name='ProfilePlot',optype='other') | |
1114 | self.idImag += 1 |
|
1132 | self.idImag += 1 | |
1115 |
opObj10.addParameter(name='id |
|
1133 | opObj10.addParameter(name='id', value=int(self.idImag), format='int') | |
1116 |
|
1134 | |||
1117 | channelList=self.specGgraphChannelList.text() |
|
1135 | channelList=self.specGgraphChannelList.text() | |
1118 | if self.specGgraphChannelList.isModified(): |
|
1136 | if self.specGgraphChannelList.isModified(): |
General Comments 0
You need to be logged in to leave comments.
Login now