This diff has been collapsed as it changes many lines, (719 lines changed) Show them Hide them | |||
@@ -61,6 +61,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
61 | 61 | self.readUnitConfObjList=[] |
|
62 | 62 | self.operObjList=[] |
|
63 | 63 | self.idp = 0 |
|
64 | self.idImag=0 | |
|
64 | 65 | self.online=0 |
|
65 | 66 | self.walk=1 |
|
66 | 67 | self.indexclick=None |
@@ -222,11 +223,11 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
222 | 223 | Añade al Obj XML de Projecto, name,datatype,date,time,readmode,wait,etc, crea el readUnitProcess del archivo xml. |
|
223 | 224 | Prepara la configuración del diágrama del Arbol del treeView numero 2 |
|
224 | 225 | """ |
|
226 | ||
|
225 | 227 | self.console.clear() |
|
226 | 228 | self.idp +=1 |
|
227 | 229 | self.projectObj= Project () |
|
228 | 230 | self.__projObjDict[self.idp]=self.projectObj |
|
229 | ||
|
230 | 231 | id = self.idp |
|
231 | 232 | name = str(self.proName.text()) |
|
232 | 233 | try: |
@@ -241,7 +242,12 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
241 | 242 | self.projectObj.setup(id = id, name=name, description=desc) |
|
242 | 243 | datatype = str(self.proComDataType.currentText()) |
|
243 | 244 | path = str(self.proDataPath.text()) |
|
244 | #path='C://data3' | |
|
245 | if not os.path.exists(path): | |
|
246 | self.proOk.setEnabled(False) | |
|
247 | self.console.clear() | |
|
248 | self.console.append("Write a correct a path") | |
|
249 | return | |
|
250 | ||
|
245 | 251 | online = int(self.online) |
|
246 | 252 | if online ==0: |
|
247 | 253 | delay=0 |
@@ -295,11 +301,11 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
295 | 301 | |
|
296 | 302 | #Disable tabProject after finish the creation |
|
297 | 303 | self.tabProject.setEnabled(False) |
|
298 | self.console.clear() | |
|
299 | self.console.append("Now you can add a Unit Processing") | |
|
300 | self.console.append("If you want to save your project") | |
|
301 | self.console.append("click on your project name in the Tree Project Explorer") | |
|
302 | ||
|
304 | # self.console.clear() | |
|
305 | # self.console.append("Now you can add a Unit Processing") | |
|
306 | # self.console.append("If you want to save your project") | |
|
307 | # self.console.append("click on your project name in the Tree Project Explorer") | |
|
308 | # | |
|
303 | 309 | |
|
304 | 310 | @pyqtSignature("") |
|
305 | 311 | def on_proClear_clicked(self): |
@@ -483,7 +489,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
483 | 489 | self.console.append("If you want to save your project") |
|
484 | 490 | self.console.append("click on your project name in the Tree Project Explorer") |
|
485 | 491 | |
|
486 | #----------------Voltage Graph-------------------# | |
|
492 | #----------------Voltage Graph-------------------# | |
|
487 | 493 | @pyqtSignature("int") |
|
488 | 494 | def on_volGraphCebSave_stateChanged(self, p0): |
|
489 | 495 | """ |
@@ -511,24 +517,24 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
511 | 517 | self.volGraphOk.setEnabled(False) |
|
512 | 518 | return |
|
513 | 519 | |
|
514 | ||
|
515 | 520 | @pyqtSignature("int") |
|
516 |
def on_volGraphC |
|
|
521 | def on_volGraphCebshow_stateChanged(self, p0): | |
|
517 | 522 | """ |
|
518 | Metodo que identifica que tipo de dato se va a trabajar VOLTAGE O ESPECTRA | |
|
519 | """ | |
|
520 |
if |
|
|
521 | self.volGraphIdFigure.setEnabled(False) | |
|
522 | self.volGraphWintitle.setEnabled(False) | |
|
523 | Check Box habilita ingresode del numero de Integraciones a realizar | |
|
524 | """ | |
|
525 | if p0==0: | |
|
526 | ||
|
523 | 527 | self.volGraphChannelList.setEnabled(False) |
|
524 |
self.volGraph |
|
|
525 |
self.volGraph |
|
|
526 |
if |
|
|
527 | self.volGraphIdFigure.setEnabled(True) | |
|
528 | self.volGraphWintitle.setEnabled(True) | |
|
528 | self.volGraphfreqrange.setEnabled(False) | |
|
529 | self.volGraphHeightrange.setEnabled(False) | |
|
530 | if p0==2: | |
|
531 | ||
|
529 | 532 | self.volGraphChannelList.setEnabled(True) |
|
530 |
self.volGraph |
|
|
531 |
self.volGraph |
|
|
533 | self.volGraphfreqrange.setEnabled(True) | |
|
534 | self.volGraphHeightrange.setEnabled(True) | |
|
535 | self.idImag += 1 | |
|
536 | print self.idImag | |
|
537 | ||
|
532 | 538 | |
|
533 | 539 | @pyqtSignature(" ") |
|
534 | 540 | def on_volGraphOk_clicked(self): |
@@ -540,15 +546,14 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
540 | 546 | if self.__upObjDict.has_key(i)==True: |
|
541 | 547 | self.upObj=self.__upObjDict[i] |
|
542 | 548 | |
|
543 |
if self.volGraphC |
|
|
549 | if self.volGraphCebshow.isChecked(): | |
|
544 | 550 | opObj10=self.upObj.addOperation(name='Scope', optype='other') |
|
545 | 551 | self.operObjList.append(opObj10) |
|
546 | wintitle=self.volGraphWintitle.text() | |
|
547 | 552 | channelList=self.volGraphChannelList.text() |
|
548 |
xvalue= self.volGraph |
|
|
549 |
yvalue= self.volGraph |
|
|
550 | ||
|
551 |
opObj1 |
|
|
553 | xvalue= self.volGraphfreqrange.text() | |
|
554 | yvalue= self.volGraphHeightrange.text() | |
|
555 | ||
|
556 | opObj1.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
|
552 | 557 | opObj10.addParameter(name='channelList', value=channelList, format='int') |
|
553 | 558 | xvalueList=xvalue.split(',') |
|
554 | 559 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') |
@@ -561,11 +566,12 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
561 | 566 | opObj10.addParameter(name='save', value='1', format='int') |
|
562 | 567 | opObj10.addParameter(name='figpath', value= self.volGraphPath.text()) |
|
563 | 568 | opObj10.addParameter(name='figfile', value= self.volGraphPrefix.text()) |
|
569 | ||
|
564 | 570 | self.tabgraphVoltage.setEnabled(False) |
|
565 | 571 | self.console.clear() |
|
566 | 572 | self.console.append("If you want to save your project") |
|
567 | 573 | self.console.append("click on your project name in the Tree Project Explorer") |
|
568 |
|
|
|
574 | ||
|
569 | 575 | #------Spectra operation--------# |
|
570 | 576 | @pyqtSignature("int") |
|
571 | 577 | def on_specOpCebnFFTpoints_stateChanged(self, p0): |
@@ -678,7 +684,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
678 | 684 | opObj10.addParameter(name='mode', value=value,format='int') |
|
679 | 685 | |
|
680 | 686 | |
|
681 | self.tabopSpectra.setEnabled(False) | |
|
687 | #self.tabopSpectra.setEnabled(False) | |
|
682 | 688 | self.console.clear() |
|
683 | 689 | self.console.append("If you want to save your project") |
|
684 | 690 | self.console.append("click on your project name in the Tree Project Explorer") |
@@ -686,35 +692,93 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
686 | 692 | |
|
687 | 693 | #------Spectra Graph--------# |
|
688 | 694 | @pyqtSignature("int") |
|
689 |
def on_specGraphC |
|
|
690 | if index==0: | |
|
691 | print "return" | |
|
692 | ||
|
693 | if index==1: | |
|
694 |
self. |
|
|
695 | self.specGraphTimeRange.setEnabled(False) | |
|
696 | ||
|
697 | if index==2: | |
|
698 |
self. |
|
|
699 | self.specGraphTimeRange.setEnabled(False) | |
|
695 | def on_specGraphCebSpectraplot_stateChanged(self, p0): | |
|
696 | ||
|
697 | if p0==2: | |
|
698 | self.specGgraphFreq.setEnabled(True) | |
|
699 | self.specGgraphHeight.setEnabled(True) | |
|
700 | self.specGgraphDbsrange.setEnabled(True) | |
|
701 | if p0==0: | |
|
702 | self.specGgraphFreq.setEnabled(False) | |
|
703 | self.specGgraphHeight.setEnabled(False) | |
|
704 | self.specGgraphDbsrange.setEnabled(False) | |
|
700 | 705 | |
|
701 | if index==3: | |
|
702 | self.setspecGraph() | |
|
703 | 706 | |
|
707 | @pyqtSignature("int") | |
|
708 | def on_specGraphCebCrossSpectraplot_stateChanged(self, p0): | |
|
709 | ||
|
710 | if p0==2: | |
|
711 | self.specGgraphFreq.setEnabled(True) | |
|
712 | self.specGgraphHeight.setEnabled(True) | |
|
713 | self.specGgraphmagnitud.setEnabled(True) | |
|
714 | if p0==0: | |
|
715 | self.specGgraphFreq.setEnabled(False) | |
|
716 | self.specGgraphHeight.setEnabled(False) | |
|
717 | self.specGgraphmagnitud.setEnabled(False) | |
|
704 | 718 | |
|
705 | if index==4: | |
|
706 | self.setspecGraph() | |
|
707 | self.specGraphTimeRange.setEnabled(False) | |
|
719 | @pyqtSignature("int") | |
|
720 | def on_specGraphCebRTIplot_stateChanged(self, p0): | |
|
708 | 721 | |
|
709 |
if |
|
|
710 |
self. |
|
|
722 | if p0==2: | |
|
723 | self.specGgraphTimeRange.setEnabled(True) | |
|
724 | self.specGgraphHeight.setEnabled(True) | |
|
725 | self.specGgraphDbsrange.setEnabled(True) | |
|
726 | if p0==0: | |
|
727 | self.specGgraphTimeRange.setEnabled(False) | |
|
728 | self.specGgraphHeight.setEnabled(False) | |
|
729 | self.specGgraphDbsrange.setEnabled(False) | |
|
730 | ||
|
711 | 731 | |
|
712 | if index==6: | |
|
713 | self.setspecGraph() | |
|
714 | self.specGgraphzrange.setEnabled(False) | |
|
732 | ||
|
733 | @pyqtSignature("int") | |
|
734 | def on_specGraphCebCoherencmap_stateChanged(self, p0): | |
|
735 | ||
|
736 | if p0==2: | |
|
737 | self.specGgraphTimeRange.setEnabled(True) | |
|
738 | self.specGgraphHeight.setEnabled(True) | |
|
739 | self.specGgraphmagnitud.setEnabled(True) | |
|
740 | if p0==0: | |
|
741 | self.specGgraphTimeRange.setEnabled(False) | |
|
742 | self.specGgraphHeight.setEnabled(False) | |
|
743 | self.specGgraphmagnitud.setEnabled(False) | |
|
744 | ||
|
745 | ||
|
746 | @pyqtSignature("int") | |
|
747 | def on_specGraphRTIfromnoise_stateChanged(self, p0): | |
|
748 | ||
|
749 | if p0==2: | |
|
750 | self.specGgraphTimeRange.setEnabled(True) | |
|
751 | self.specGgraphHeight.setEnabled(True) | |
|
752 | self.specGgraphDbsrange.setEnabled(True) | |
|
753 | if p0==0: | |
|
754 | self.specGgraphTimeRange.setEnabled(False) | |
|
755 | self.specGgraphHeight.setEnabled(False) | |
|
756 | self.specGgraphDbsrange.setEnabled(False) | |
|
715 | 757 | |
|
716 | 758 | @pyqtSignature("int") |
|
717 |
def on_specGraph |
|
|
759 | def on_specGraphPowerprofile_stateChanged(self, p0): | |
|
760 | ||
|
761 | if p0==2: | |
|
762 | ||
|
763 | self.specGgraphHeight.setEnabled(True) | |
|
764 | self.specGgraphDbsrange.setEnabled(True) | |
|
765 | if p0==0: | |
|
766 | self.specGgraphHeight.setEnabled(False) | |
|
767 | self.specGgraphDbsrange.setEnabled(False) | |
|
768 | ||
|
769 | @pyqtSignature("int") | |
|
770 | def on_specGraphPhase_stateChanged(self, p0): | |
|
771 | ||
|
772 | if p0==2: | |
|
773 | self.specGgraphTimeRange.setEnabled(True) | |
|
774 | self.specGgraphPhaserange.setEnabled(True) | |
|
775 | ||
|
776 | if p0==0: | |
|
777 | self.specGgraphTimeRange.setEnabled(False) | |
|
778 | self.specGgraphPhaserange.setEnabled(False) | |
|
779 | ||
|
780 | @pyqtSignature("int") | |
|
781 | def on_specGraphSaveSpectra_stateChanged(self, p0): | |
|
718 | 782 | """ |
|
719 | 783 | """ |
|
720 | 784 | if p0==2: |
@@ -724,7 +788,58 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
724 | 788 | if p0==0: |
|
725 | 789 | self.specGraphPath.setEnabled(False) |
|
726 | 790 | self.specGraphPrefix.setEnabled(False) |
|
727 |
s |
|
|
791 | self.specGraphToolPath.setEnabled(False) | |
|
792 | ||
|
793 | ||
|
794 | @pyqtSignature("int") | |
|
795 | def on_specGraphSaveCross_stateChanged(self, p0): | |
|
796 | if p0==2: | |
|
797 | self.specGraphPath.setEnabled(True) | |
|
798 | self.specGraphPrefix.setEnabled(True) | |
|
799 | self.specGraphToolPath.setEnabled(True) | |
|
800 | ||
|
801 | @pyqtSignature("int") | |
|
802 | def on_specGraphSaveRTIplot_stateChanged(self, p0): | |
|
803 | if p0==2: | |
|
804 | self.specGraphPath.setEnabled(True) | |
|
805 | self.specGraphPrefix.setEnabled(True) | |
|
806 | self.specGraphToolPath.setEnabled(True) | |
|
807 | ||
|
808 | @pyqtSignature("int") | |
|
809 | def on_specGraphSaveCoherencemap_stateChanged(self, p0): | |
|
810 | if p0==2: | |
|
811 | self.specGraphPath.setEnabled(True) | |
|
812 | self.specGraphPrefix.setEnabled(True) | |
|
813 | self.specGraphToolPath.setEnabled(True) | |
|
814 | ||
|
815 | @pyqtSignature("int") | |
|
816 | def on_specGraphSaveRTIfromNoise_stateChanged(self, p0): | |
|
817 | if p0==2: | |
|
818 | self.specGraphPath.setEnabled(True) | |
|
819 | self.specGraphPrefix.setEnabled(True) | |
|
820 | self.specGraphToolPath.setEnabled(True) | |
|
821 | ||
|
822 | @pyqtSignature("int") | |
|
823 | def on_specGraphSavePowerprofile_stateChanged(self, p0): | |
|
824 | if p0==2: | |
|
825 | self.specGraphPath.setEnabled(True) | |
|
826 | self.specGraphPrefix.setEnabled(True) | |
|
827 | self.specGraphToolPath.setEnabled(True) | |
|
828 | ||
|
829 | @pyqtSignature("int") | |
|
830 | def on_specGraphSavePhase_stateChanged(self, p0): | |
|
831 | if p0==2: | |
|
832 | self.specGraphPath.setEnabled(True) | |
|
833 | self.specGraphPrefix.setEnabled(True) | |
|
834 | self.specGraphToolPath.setEnabled(True) | |
|
835 | ||
|
836 | @pyqtSignature("int") | |
|
837 | def on_specGraphSaveCCF_stateChanged(self, p0): | |
|
838 | if p0==2: | |
|
839 | self.specGraphPath.setEnabled(True) | |
|
840 | self.specGraphPrefix.setEnabled(True) | |
|
841 | self.specGraphToolPath.setEnabled(True) | |
|
842 | ||
|
728 | 843 | @pyqtSignature("") |
|
729 | 844 | def on_specGraphToolPath_clicked(self): |
|
730 | 845 | """ |
@@ -743,160 +858,342 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
743 | 858 | if self.__arbolDict[i]==self.indexclick: |
|
744 | 859 | if self.__upObjDict.has_key(i)==True: |
|
745 | 860 | self.upObj=self.__upObjDict[i] |
|
746 | ||
|
747 | if self.specGraphComType.currentIndex()==1: | |
|
861 | if self.specGraphCebSpectraplot.isChecked(): | |
|
748 | 862 | opObj10=self.upObj.addOperation(name='SpectraPlot',optype='other') |
|
749 | self.properSpecGraph(opObj10) | |
|
750 |
|
|
|
751 | if self.specGraphComType.currentIndex()==2: | |
|
863 | ||
|
864 | self.idImag += 1 | |
|
865 | opObj10.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
|
866 | ||
|
867 | channelList=self.specGgraphChannelList.text() | |
|
868 | if self.specGgraphChannelList.isModified(): | |
|
869 | opObj10.addParameter(name='channelList', value=channelList, format='intlist') | |
|
870 | ||
|
871 | xvalue= self.specGgraphFreq.text() | |
|
872 | if self.specGgraphFreq.isModified(): | |
|
873 | xvalueList=xvalue.split(',') | |
|
874 | try: | |
|
875 | value=int(xvalueList[0]) | |
|
876 | value=int(xvalueList[1]) | |
|
877 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
|
878 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |
|
879 | except: | |
|
880 | return 0 | |
|
881 | ||
|
882 | yvalue= self.specGgraphHeight.text() | |
|
883 | if self.specGgraphHeight.isModified(): | |
|
884 | yvalueList=yvalue.split(",") | |
|
885 | try: | |
|
886 | value=int(yvalueList[0]) | |
|
887 | value=int(yvalueList[1]) | |
|
888 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
|
889 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
|
890 | except: | |
|
891 | return 0 | |
|
892 | ||
|
893 | zvalue= self.specGgraphDbsrange.text() | |
|
894 | if self.specGgraphDbsrange.isModified(): | |
|
895 | zvalueList=zvalue.split(",") | |
|
896 | try: | |
|
897 | value=int(zvalueList[0]) | |
|
898 | value=int(zvalueList[1]) | |
|
899 | opObj10.addParameter(name='zmin', value=zvalueList[0], format='int') | |
|
900 | opObj10.addParameter(name='zmax', value=zvalueList[1], format='int') | |
|
901 | except: | |
|
902 | return 0 | |
|
903 | ||
|
904 | if self.specGraphSaveSpectra.isChecked(): | |
|
905 | opObj10.addParameter(name='save', value='1', format='bool') | |
|
906 | opObj10.addParameter(name='figpath', value= self.specGraphPath.text(),format='str') | |
|
907 | opObj10.addParameter(name='figfile', value= self.specGraphPrefix.text(),format='str') | |
|
908 | ||
|
909 | ||
|
910 | if self.specGraphCebCrossSpectraplot.isChecked(): | |
|
752 | 911 | opObj10=self.upObj.addOperation(name='CrossSpectraPlot',optype='other') |
|
753 | self.properSpecGraph(opObj10) | |
|
912 | ||
|
754 | 913 | opObj10.addParameter(name='power_cmap', value='jet', format='str') |
|
755 | 914 | opObj10.addParameter(name='coherence_cmap', value='jet', format='str') |
|
756 |
opObj10.addParameter(name='phase_cmap', value='RdBu_r', format='str') |
|
|
915 | opObj10.addParameter(name='phase_cmap', value='RdBu_r', format='str') | |
|
916 | ||
|
917 | ||
|
918 | self.idImag += 1 | |
|
919 | opObj10.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
|
920 | ||
|
921 | channelList=self.specGgraphChannelList.text() | |
|
922 | if self.specGgraphChannelList.isModified(): | |
|
923 | opObj10.addParameter(name='channelList', value=channelList, format='intlist') | |
|
924 | ||
|
925 | xvalue= self.specGgraphFreq.text() | |
|
926 | if self.specGgraphFreq.isModified(): | |
|
927 | xvalueList=xvalue.split(',') | |
|
928 | try: | |
|
929 | value=int(xvalueList[0]) | |
|
930 | value=int(xvalueList[1]) | |
|
931 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
|
932 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |
|
933 | except: | |
|
934 | return 0 | |
|
935 | ||
|
936 | yvalue= self.specGgraphHeight.text() | |
|
937 | if self.specGgraphHeight.isModified(): | |
|
938 | yvalueList=yvalue.split(",") | |
|
939 | try: | |
|
940 | value=int(yvalueList[0]) | |
|
941 | value=int(yvalueList[1]) | |
|
942 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
|
943 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
|
944 | except: | |
|
945 | return 0 | |
|
946 | ||
|
947 | zvalue= self.specGgraphmagnitud.text() | |
|
948 | if self.specGgraphmagnitud.isModified(): | |
|
949 | zvalueList=zvalue.split(",") | |
|
950 | try: | |
|
951 | value=int(zvalueList[0]) | |
|
952 | value=int(zvalueList[1]) | |
|
953 | opObj10.addParameter(name='zmin', value=zvalueList[0], format='int') | |
|
954 | opObj10.addParameter(name='zmax', value=zvalueList[1], format='int') | |
|
955 | except: | |
|
956 | return 0 | |
|
957 | ||
|
958 | if self.specGraphSaveCross.isChecked(): | |
|
959 | opObj10.addParameter(name='save', value='1', format='bool') | |
|
960 | opObj10.addParameter(name='figpath', value= self.specGraphPath.text(),format='str') | |
|
961 | opObj10.addParameter(name='figfile', value= self.specGraphPrefix.text(),format='str') | |
|
962 | ||
|
963 | ||
|
964 | ||
|
965 | if self.specGraphCebRTIplot.isChecked(): | |
|
966 | opObj10=self.upObj.addOperation(name='RTIPlot',optype='other') | |
|
967 | ||
|
968 | self.idImag += 1 | |
|
969 | opObj10.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
|
970 | ||
|
971 | channelList=self.specGgraphChannelList.text() | |
|
972 | if self.specGgraphChannelList.isModified(): | |
|
973 | opObj10.addParameter(name='channelList', value=channelList, format='intlist') | |
|
974 | ||
|
975 | xvalue= self.specGgraphTimeRange.text() | |
|
976 | if self.specGgraphTimeRange.isModified(): | |
|
977 | xvalueList=xvalue.split(',') | |
|
978 | try: | |
|
979 | value=int(xvalueList[0]) | |
|
980 | value=int(xvalueList[1]) | |
|
981 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
|
982 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |
|
983 | except: | |
|
984 | return 0 | |
|
985 | ||
|
986 | yvalue= self.specGgraphHeight.text() | |
|
987 | if self.specGgraphHeight.isModified(): | |
|
988 | yvalueList=yvalue.split(",") | |
|
989 | try: | |
|
990 | value=int(yvalueList[0]) | |
|
991 | value=int(yvalueList[1]) | |
|
992 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
|
993 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
|
994 | except: | |
|
995 | return 0 | |
|
757 | 996 | |
|
758 | if self.specGraphComType.currentIndex()==3: | |
|
759 | opObj10=self.upObj.addOperation(name='RTIPlot',optype='other') | |
|
760 | self.properSpecGraph(opObj10) | |
|
761 | value =self.specGraphTimeRange.text() | |
|
762 | opObj10.addParameter(name='timerange', value=value, format='int') | |
|
997 | zvalue= self.specGgraphDbsrange.text() | |
|
998 | if self.specGgraphDbsrange.isModified(): | |
|
999 | zvalueList=zvalue.split(",") | |
|
1000 | try: | |
|
1001 | value=int(zvalueList[0]) | |
|
1002 | value=int(zvalueList[1]) | |
|
1003 | opObj10.addParameter(name='zmin', value=zvalueList[0], format='int') | |
|
1004 | opObj10.addParameter(name='zmax', value=zvalueList[1], format='int') | |
|
1005 | except: | |
|
1006 | return 0 | |
|
1007 | ||
|
1008 | if self.specGraphSaveRTIplot.isChecked(): | |
|
1009 | opObj10.addParameter(name='save', value='1', format='bool') | |
|
1010 | opObj10.addParameter(name='figpath', value= self.specGraphPath.text(),format='str') | |
|
1011 | opObj10.addParameter(name='figfile', value= self.specGraphPrefix.text(),format='str') | |
|
763 | 1012 | |
|
764 |
if self.specGraphC |
|
|
1013 | if self.specGraphCebCoherencmap.isChecked(): | |
|
765 | 1014 | opObj10=self.upObj.addOperation(name='CoherenceMap',optype='other') |
|
766 | self.properSpecGraph(opObj10) | |
|
1015 | ||
|
767 | 1016 | opObj10.addParameter(name='coherence_cmap', value='jet', format='str') |
|
768 | 1017 | opObj10.addParameter(name='phase_cmap', value='RdBu_r', format='str') |
|
1018 | ||
|
1019 | self.idImag += 1 | |
|
1020 | opObj10.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
|
1021 | ||
|
1022 | channelList=self.specGgraphChannelList.text() | |
|
1023 | if self.specGgraphChannelList.isModified(): | |
|
1024 | opObj10.addParameter(name='channelList', value=channelList, format='intlist') | |
|
1025 | ||
|
1026 | xvalue= self.specGgraphTimeRange.text() | |
|
1027 | if self.specGgraphTimeRange.isModified(): | |
|
1028 | xvalueList=xvalue.split(',') | |
|
1029 | try: | |
|
1030 | value=int(xvalueList[0]) | |
|
1031 | value=int(xvalueList[1]) | |
|
1032 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
|
1033 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |
|
1034 | except: | |
|
1035 | return 0 | |
|
1036 | ||
|
1037 | yvalue= self.specGgraphHeight.text() | |
|
1038 | if self.specGgraphHeight.isModified(): | |
|
1039 | yvalueList=yvalue.split(",") | |
|
1040 | try: | |
|
1041 | value=int(yvalueList[0]) | |
|
1042 | value=int(yvalueList[1]) | |
|
1043 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
|
1044 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
|
1045 | except: | |
|
1046 | return 0 | |
|
1047 | ||
|
1048 | zvalue= self.specGgraphmagnitud.text() | |
|
1049 | if self.specGgraphmagnitud.isModified(): | |
|
1050 | zvalueList=zvalue.split(",") | |
|
1051 | try: | |
|
1052 | value=int(zvalueList[0]) | |
|
1053 | value=int(zvalueList[1]) | |
|
1054 | opObj10.addParameter(name='zmin', value=zvalueList[0], format='int') | |
|
1055 | opObj10.addParameter(name='zmax', value=zvalueList[1], format='int') | |
|
1056 | except: | |
|
1057 | return 0 | |
|
1058 | ||
|
1059 | if self.specGraphSaveCoherencemap.isChecked(): | |
|
1060 | opObj10.addParameter(name='save', value='1', format='bool') | |
|
1061 | opObj10.addParameter(name='figpath', value= self.specGraphPath.text(),format='str') | |
|
1062 | opObj10.addParameter(name='figfile', value= self.specGraphPrefix.text(),format='str') | |
|
1063 | ||
|
769 | 1064 | |
|
770 |
if self.specGraph |
|
|
1065 | if self.specGraphRTIfromnoise.isChecked(): | |
|
771 | 1066 | opObj10=self.upObj.addOperation(name='RTIfromNoise',optype='other') |
|
772 | self.properSpecGraph(opObj10) | |
|
773 | self.specGgraphzrange.setEnabled(False) | |
|
1067 | ||
|
1068 | self.idImag += 1 | |
|
1069 | opObj10.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
|
1070 | ||
|
1071 | channelList=self.specGgraphChannelList.text() | |
|
1072 | if self.specGgraphChannelList.isModified(): | |
|
1073 | opObj10.addParameter(name='channelList', value=channelList, format='intlist') | |
|
1074 | ||
|
1075 | xvalue= self.specGgraphTimeRange.text() | |
|
1076 | if self.specGgraphTimeRange.isModified(): | |
|
1077 | xvalueList=xvalue.split(',') | |
|
1078 | try: | |
|
1079 | value=int(xvalueList[0]) | |
|
1080 | value=int(xvalueList[1]) | |
|
1081 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
|
1082 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |
|
1083 | except: | |
|
1084 | return 0 | |
|
1085 | ||
|
1086 | yvalue= self.specGgraphHeight.text() | |
|
1087 | if self.specGgraphHeight.isModified(): | |
|
1088 | yvalueList=yvalue.split(",") | |
|
1089 | try: | |
|
1090 | value=int(yvalueList[0]) | |
|
1091 | value=int(yvalueList[1]) | |
|
1092 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
|
1093 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
|
1094 | except: | |
|
1095 | return 0 | |
|
1096 | ||
|
1097 | ||
|
1098 | if self.specGraphSaveRTIfromNoise.isChecked(): | |
|
1099 | opObj10.addParameter(name='save', value='1', format='bool') | |
|
1100 | opObj10.addParameter(name='figpath', value= self.specGraphPath.text(),format='str') | |
|
1101 | opObj10.addParameter(name='figfile', value= self.specGraphPrefix.text(),format='str') | |
|
1102 | ||
|
774 | 1103 | |
|
775 |
if self.specGraph |
|
|
1104 | if self.specGraphPowerprofile.isChecked(): | |
|
776 | 1105 | opObj10=self.upObj.addOperation(name='ProfilePlot',optype='other') |
|
777 |
self. |
|
|
778 | self.specGgraphzrange.setEnabled(False) | |
|
779 |
|
|
|
1106 | self.idImag += 1 | |
|
1107 | opObj10.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
|
1108 | ||
|
1109 | channelList=self.specGgraphChannelList.text() | |
|
1110 | if self.specGgraphChannelList.isModified(): | |
|
1111 | opObj10.addParameter(name='channelList', value=channelList, format='intlist') | |
|
1112 | ||
|
1113 | xvalue= self.specGgraphDbsrange.text() | |
|
1114 | if self.specGgraphDbsrange.isModified(): | |
|
1115 | xvalueList=xvalue.split(',') | |
|
1116 | try: | |
|
1117 | value=int(xvalueList[0]) | |
|
1118 | value=int(xvalueList[1]) | |
|
1119 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
|
1120 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |
|
1121 | except: | |
|
1122 | return 0 | |
|
1123 | ||
|
1124 | yvalue= self.specGgraphHeight.text() | |
|
1125 | if self.specGgraphHeight.isModified(): | |
|
1126 | yvalueList=yvalue.split(",") | |
|
1127 | try: | |
|
1128 | value=int(yvalueList[0]) | |
|
1129 | value=int(yvalueList[1]) | |
|
1130 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
|
1131 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
|
1132 | except: | |
|
1133 | return 0 | |
|
1134 | ||
|
1135 | ||
|
1136 | if self.specGraphSavePowerprofile.isChecked(): | |
|
1137 | opObj10.addParameter(name='save', value='1', format='bool') | |
|
1138 | opObj10.addParameter(name='figpath', value= self.specGraphPath.text(),format='str') | |
|
1139 | opObj10.addParameter(name='figfile', value= self.specGraphPrefix.text(),format='str') | |
|
1140 | ||
|
1141 | ||
|
780 | 1142 | |
|
781 | 1143 | #self.tabgraphSpectra.setEnabled(False) |
|
782 | self.specGraphComType.setEnabled(False) | |
|
1144 | ||
|
783 | 1145 | self.console.clear() |
|
784 | 1146 | self.console.append("If you want to save your project") |
|
785 | 1147 | self.console.append("click on your project name in the Tree Project Explorer") |
|
786 |
|
|
|
1148 | ||
|
787 | 1149 | @pyqtSignature("") |
|
788 | 1150 | def on_specGraphClear_clicked(self): |
|
789 | 1151 | self.clearspecGraph() |
|
790 | ||
|
791 | def properSpecGraph(self,opObj10): | |
|
792 | ||
|
793 | self.operObjList.append(opObj10) | |
|
794 | wintitle=self.specGraphWinTitle.text() | |
|
795 | opObj10.addParameter(name='wintitle', value=wintitle, format='str') | |
|
796 | idfigure=self.specGraphIdFigure.text() | |
|
797 | ||
|
798 | opObj10.addParameter(name='idfigure', value=idfigure, format='int') | |
|
799 | ||
|
800 | channelList=self.specGraphChannelList.text() | |
|
801 | if self.specGraphChannelList.isModified(): | |
|
802 | opObj10.addParameter(name='channelList', value=channelList, format='intlist') | |
|
803 | ||
|
804 | xvalue= self.specGgraphxrange.text() | |
|
805 | if self.specGgraphxrange.isModified(): | |
|
806 | xvalueList=xvalue.split(',') | |
|
807 | try: | |
|
808 | value=int(xvalueList[0]) | |
|
809 | value=int(xvalueList[1]) | |
|
810 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
|
811 | opObj10.addParameter(name='xmax', value=xvalueList[1], format='int') | |
|
812 | except: | |
|
813 | return 0 | |
|
814 | ||
|
815 | yvalue= self.specGgraphyrange.text() | |
|
816 | if self.specGgraphyrange.isModified(): | |
|
817 | yvalueList=yvalue.split(",") | |
|
818 | try: | |
|
819 | value=int(yvalueList[0]) | |
|
820 | value=int(yvalueList[1]) | |
|
821 | opObj10.addParameter(name='ymin', value=yvalueList[0], format='int') | |
|
822 | opObj10.addParameter(name='ymax', value=yvalueList[1], format='int') | |
|
823 | except: | |
|
824 | return 0 | |
|
825 | ||
|
826 | zvalue= self.specGgraphzrange.text() | |
|
827 | if self.specGgraphzrange.isModified(): | |
|
828 | zvalueList=zvalue.split(",") | |
|
829 | try: | |
|
830 | value=int(zvalueList[0]) | |
|
831 | value=int(zvalueList[1]) | |
|
832 | opObj10.addParameter(name='zmin', value=zvalueList[0], format='int') | |
|
833 | opObj10.addParameter(name='zmax', value=zvalueList[1], format='int') | |
|
834 | except: | |
|
835 | return 0 | |
|
836 | ||
|
837 | if self.specGraphCebSave.isChecked(): | |
|
838 | opObj10.addParameter(name='save', value='1', format='bool') | |
|
839 | opObj10.addParameter(name='figpath', value= self.specGraphPath.text(),format='str') | |
|
840 | opObj10.addParameter(name='figfile', value= self.specGraphPrefix.text(),format='str') | |
|
841 | ||
|
842 | 1152 | |
|
843 | 1153 | def setspecGraph(self): |
|
844 | self.specGraphIdFigure.setEnabled(True) | |
|
845 |
self.specG |
|
|
846 | self.specGraphChannelList.setEnabled(True) | |
|
847 | self.specGgraphxrange.setEnabled(True) | |
|
848 | self.specGgraphyrange.setEnabled(True) | |
|
849 | self.specGgraphzrange.setEnabled(True) | |
|
850 | self.specGraphTimeRange.setEnabled(True) | |
|
851 | # self.specGraphPath.setEnabled(True) | |
|
852 | # self.specGraphToolPath.setEnabled(True) | |
|
853 | # self.specGraphPrefix.setEnabled(True) | |
|
1154 | ||
|
1155 | self.specGgraphChannelList.setEnabled(True) | |
|
1156 | ||
|
854 | 1157 | def clearspecGraph(self): |
|
855 | self.specGraphComType.setEnabled(True) | |
|
856 |
self.specG |
|
|
857 | self.specGraphIdFigure.clear() | |
|
858 | self.specGraphWinTitle.clear() | |
|
859 | self.specGraphChannelList.clear() | |
|
860 | self.specGgraphxrange.clear() | |
|
861 | self.specGgraphyrange.clear() | |
|
862 | self.specGgraphzrange.clear() | |
|
863 | self.specGraphTimeRange.clear() | |
|
1158 | ||
|
1159 | self.specGgraphChannelList.clear() | |
|
1160 | ||
|
864 | 1161 | |
|
865 | 1162 | def playProject(self): |
|
866 | 1163 | |
|
867 | 1164 | for i in self.__arbolDict: |
|
868 | 1165 | if self.__arbolDict[i]==self.indexclick: |
|
869 |
|
|
|
870 | else: | |
|
871 | self.console.clear() | |
|
872 |
self.console. |
|
|
873 | return 0 | |
|
874 | filename=self.pathWorkSpace+str(self.projectObj.name)+str(self.projectObj.id)+".xml" | |
|
875 |
self.projectObj. |
|
|
876 | #controllerObj.printattr() | |
|
877 | ||
|
878 | self.projectObj.createObjects() | |
|
879 | self.projectObj.connectObjects() | |
|
880 | self.projectObj.run() | |
|
881 | self.console.clear() | |
|
882 | self.console.append("Please Wait...") | |
|
1166 | if self.__projObjDict.has_key(i)==True: | |
|
1167 | self.projectObj=self.__projObjDict[i] | |
|
1168 | filename=self.pathWorkSpace+"/"+str(self.projectObj.name)+str(self.projectObj.id)+".xml" | |
|
1169 | self.console.clear() | |
|
1170 | self.console.append("Please Wait...") | |
|
1171 | self.projectObj.readXml(filename) | |
|
1172 | self.projectObj.createObjects() | |
|
1173 | self.projectObj.connectObjects() | |
|
1174 | self.projectObj.run() | |
|
1175 | return 0 | |
|
1176 | else: | |
|
1177 | self.console.clear() | |
|
1178 | self.console.append("First,click on current project") | |
|
1179 | ||
|
883 | 1180 | |
|
884 | 1181 | |
|
885 | 1182 | def saveProject(self): |
|
886 | ||
|
887 |
for i in self.__arbolDict: |
|
|
1183 | print self.indexclick | |
|
1184 | for i in self.__arbolDict: | |
|
888 | 1185 | if self.__arbolDict[i]==self.indexclick: |
|
889 |
|
|
|
890 | else: | |
|
891 |
|
|
|
892 | self.console.append("First, Click on current project") | |
|
893 | return 0 | |
|
894 | ||
|
895 | filename=self.pathWorkSpace+str(self.projectObj.name)+str(self.projectObj.id)+".xml" | |
|
896 | self.projectObj.writeXml(filename) | |
|
1186 | if self.__projObjDict.has_key(i)==True: | |
|
1187 | self.projectObj=self.__projObjDict[int(i)] | |
|
1188 | else: | |
|
1189 | self.console.clear() | |
|
1190 | self.console.append("First,click on current project") | |
|
1191 | ||
|
1192 | filename=self.pathWorkSpace+"/"+str(self.projectObj.name)+str(self.projectObj.id)+".xml" | |
|
897 | 1193 | self.console.clear() |
|
1194 | self.projectObj.writeXml(filename) | |
|
898 | 1195 | self.console.append("Now, you can push the icon Start in the toolbar or push start in menu run") |
|
899 | ||
|
1196 | ||
|
900 | 1197 | |
|
901 | 1198 | def clickFunction(self,index): |
|
902 | 1199 | self.indexclick= index.model().itemFromIndex(index) |
@@ -906,6 +1203,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
906 | 1203 | if self.__arbolDict[i]==self.indexclick: |
|
907 | 1204 | if self.__projObjDict.has_key(i)==True: |
|
908 | 1205 | #self.tabProject.setEnabled(True) |
|
1206 | ||
|
909 | 1207 | self.proName.setText(str(self.__projObjDict[i].name)) |
|
910 | 1208 | self.proDataPath.setText(str(self.readUnitConfObjList[i-1].path)) |
|
911 | 1209 | |
@@ -970,10 +1268,20 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
970 | 1268 | |
|
971 | 1269 | if self.indexclick.text()=='Spectra': |
|
972 | 1270 | self.tabSpectra.setEnabled(True) |
|
1271 | self.specOpnFFTpoints.setEnabled(True) | |
|
973 | 1272 | self.tabVoltage.setEnabled(False) |
|
974 | 1273 | self.tabCorrelation.setEnabled(False) |
|
975 |
self.tabWidgetProject.setCurrentWidget(self.tabSpectra) |
|
|
976 |
|
|
|
1274 | self.tabWidgetProject.setCurrentWidget(self.tabSpectra) | |
|
1275 | ||
|
1276 | self.specOpnFFTpoints.clear() | |
|
1277 | self.specOppairsList.clear() | |
|
1278 | self.specOpChannel.clear() | |
|
1279 | self.specOpHeights.clear() | |
|
1280 | self.specOpIncoherent.clear() | |
|
1281 | self.specOpRemoveDC.clear() | |
|
1282 | self.specOpRemoveInterference.clear() | |
|
1283 | ||
|
1284 | ||
|
977 | 1285 | if self.indexclick.text()=='Correlation': |
|
978 | 1286 | self.tabCorrelation.setEnabled(True) |
|
979 | 1287 | self.tabVoltage.setEnabled(False) |
@@ -1001,8 +1309,6 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
1001 | 1309 | for i in self.__arbolDict: |
|
1002 | 1310 | if self.__arbolDict[i]==self.indexclick: |
|
1003 | 1311 | self.arbolItem=self.__arbolDict[i] |
|
1004 | #print self.arbolItem | |
|
1005 | #self.treeProjectExplorer.removeRows(self.arbolItem) | |
|
1006 | 1312 | self.arbolItem.removeRows(self.arbolItem.row(),1) |
|
1007 | 1313 | |
|
1008 | 1314 | if action == quitAction3: |
@@ -1106,7 +1412,6 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
1106 | 1412 | files= os.listdir(path) |
|
1107 | 1413 | for thisFile in files: |
|
1108 | 1414 | thisExt = os.path.splitext(thisFile)[-1] |
|
1109 | print thisExt | |
|
1110 | 1415 | if thisExt != ext: |
|
1111 | 1416 | self.console.clear() |
|
1112 | 1417 | self.console.append("There is no datatype selected in the path Directory") |
@@ -1211,11 +1516,21 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
1211 | 1516 | self.proComEndDate.setCurrentIndex(self.proComStartDate.count()-1) |
|
1212 | 1517 | |
|
1213 | 1518 | def setWorkSpaceGUI(self,pathWorkSpace): |
|
1214 | self.pathWorkSpace = pathWorkSpace | |
|
1519 | self.pathWorkSpace = pathWorkSpace | |
|
1520 | #---Comandos Usados en Console----# | |
|
1521 | def __del__(self): | |
|
1522 | sys.stdout=sys.__stdout__ | |
|
1523 | ||
|
1524 | def normalOutputWritten(self,text): | |
|
1525 | self.console.append(text) | |
|
1526 | ||
|
1527 | #-----Fin------# | |
|
1215 | 1528 | |
|
1216 | 1529 | def setParameter(self): |
|
1217 | 1530 | self.setWindowTitle("ROJ-Signal Chain") |
|
1218 | 1531 | self.setWindowIcon(QtGui.QIcon("figure/adn.jpg")) |
|
1532 | sys.stdout = ShowMeConsole(textWritten=self.normalOutputWritten) | |
|
1533 | ||
|
1219 | 1534 | self.tabWidgetProject.setEnabled(False) |
|
1220 | 1535 | self.tabVoltage.setEnabled(False) |
|
1221 | 1536 | self.tabSpectra.setEnabled(False) |
@@ -1284,10 +1599,10 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
1284 | 1599 | self.volGraphToolPath.setEnabled(False) |
|
1285 | 1600 | |
|
1286 | 1601 | #set Graph Voltage |
|
1287 | self.volGraphIdFigure.setEnabled(False) | |
|
1288 | self.volGraphWintitle.setEnabled(False) | |
|
1289 | 1602 | self.volGraphChannelList.setEnabled(False) |
|
1290 |
self.volGraph |
|
|
1603 | self.volGraphfreqrange.setEnabled(False) | |
|
1604 | self.volGraphHeightrange.setEnabled(False) | |
|
1605 | ||
|
1291 | 1606 | self.volGraphyrange.setEnabled(False) |
|
1292 | 1607 | #set Operation Spectra |
|
1293 | 1608 | self.specOpnFFTpoints.setEnabled(False) |
@@ -1301,13 +1616,13 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
1301 | 1616 | self.specOpChannel.setEnabled(False) |
|
1302 | 1617 | self.specOpHeights.setEnabled(False) |
|
1303 | 1618 | #set Graph Spectra |
|
1304 |
self.specG |
|
|
1305 |
self.specG |
|
|
1306 |
self.specG |
|
|
1307 |
self.specGgraph |
|
|
1308 |
self.specGgraph |
|
|
1309 |
self.specGgraph |
|
|
1310 |
self.specG |
|
|
1619 | self.specGgraphChannelList.setEnabled(False) | |
|
1620 | self.specGgraphFreq.setEnabled(False) | |
|
1621 | self.specGgraphHeight.setEnabled(False) | |
|
1622 | self.specGgraphDbsrange.setEnabled(False) | |
|
1623 | self.specGgraphmagnitud.setEnabled(False) | |
|
1624 | self.specGgraphTimeRange.setEnabled(False) | |
|
1625 | self.specGgraphPhaserange.setEnabled(False) | |
|
1311 | 1626 | self.specGraphPath.setEnabled(False) |
|
1312 | 1627 | self.specGraphToolPath.setEnabled(False) |
|
1313 | 1628 | self.specGraphPrefix.setEnabled(False) |
@@ -1327,11 +1642,10 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
1327 | 1642 | self.volOpCohInt.setToolTip('Example: 100') |
|
1328 | 1643 | self.volOpOk.setToolTip('If you have finish, please Ok ') |
|
1329 | 1644 | #tool tip gui volGraph |
|
1330 |
self.volGraph |
|
|
1331 |
self.volGraph |
|
|
1332 | self.volGraphyrange.setToolTip('Example: 20,180') | |
|
1645 | self.volGraphfreqrange.setToolTip('Example: 10,150') | |
|
1646 | self.volGraphHeightrange.setToolTip('Example: 20,180') | |
|
1333 | 1647 | self.volGraphOk.setToolTip('If you have finish, please Ok ') |
|
1334 |
|
|
|
1648 | #tool tip gui specOp | |
|
1335 | 1649 | self.specOpnFFTpoints.setToolTip('Example: 100') |
|
1336 | 1650 | self.specOpIncoherent.setToolTip('Example: 150') |
|
1337 | 1651 | self.specOpRemoveDC .setToolTip('Example: 1') |
@@ -1341,15 +1655,13 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||
|
1341 | 1655 | self.specOpHeights.setToolTip('Example: 90,180') |
|
1342 | 1656 | self.specOppairsList.setToolTip('Example: (0,1),(2,3)') |
|
1343 | 1657 | #tool tip gui specGraph |
|
1344 | self.specGraphIdFigure.setToolTip('Example: 2') | |
|
1345 | self.specGraphWinTitle.setToolTip('Example: Myplot') | |
|
1346 | self.specGraphChannelList.setToolTip('Example: Myplot') | |
|
1347 | self.specGgraphxrange.setToolTip('Example: 10,150') | |
|
1348 | self.specGgraphyrange.setToolTip('Example: 20,160') | |
|
1349 | self.specGgraphzrange.setToolTip('Example: 30,170') | |
|
1350 | ||
|
1351 | self.specGraphPrefix.setToolTip('Example: figure') | |
|
1352 | 1658 | |
|
1659 | self.specGgraphChannelList.setToolTip('Example: Myplot') | |
|
1660 | self.specGgraphFreq.setToolTip('Example: 10,150') | |
|
1661 | self.specGgraphHeight.setToolTip('Example: 20,160') | |
|
1662 | self.specGgraphDbsrange.setToolTip('Example: 30,170') | |
|
1663 | ||
|
1664 | self.specGraphPrefix.setToolTip('Example: figure') | |
|
1353 | 1665 | |
|
1354 | 1666 | class UnitProcess(QMainWindow, Ui_UnitProcess): |
|
1355 | 1667 | """ |
@@ -1424,4 +1736,9 class UnitProcess(QMainWindow, Ui_UnitProcess): | |||
|
1424 | 1736 | |
|
1425 | 1737 | def closeEvent(self, event): |
|
1426 | 1738 | self.closed.emit() |
|
1427 | event.accept() No newline at end of file | |
|
1739 | event.accept() | |
|
1740 | ||
|
1741 | class ShowMeConsole(QtCore.QObject): | |
|
1742 | textWritten=QtCore.pyqtSignal(str) | |
|
1743 | def write (self,text): | |
|
1744 | self.textWritten.emit(str(text)) No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now