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 | self.readUnitConfObjList=[] |
|
61 | self.readUnitConfObjList=[] | |
62 | self.operObjList=[] |
|
62 | self.operObjList=[] | |
63 | self.idp = 0 |
|
63 | self.idp = 0 | |
|
64 | self.idImag=0 | |||
64 | self.online=0 |
|
65 | self.online=0 | |
65 | self.walk=1 |
|
66 | self.walk=1 | |
66 | self.indexclick=None |
|
67 | self.indexclick=None | |
@@ -222,11 +223,11 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
222 | Añade al Obj XML de Projecto, name,datatype,date,time,readmode,wait,etc, crea el readUnitProcess del archivo xml. |
|
223 | Añade al Obj XML de Projecto, name,datatype,date,time,readmode,wait,etc, crea el readUnitProcess del archivo xml. | |
223 | Prepara la configuración del diágrama del Arbol del treeView numero 2 |
|
224 | Prepara la configuración del diágrama del Arbol del treeView numero 2 | |
224 | """ |
|
225 | """ | |
|
226 | ||||
225 | self.console.clear() |
|
227 | self.console.clear() | |
226 | self.idp +=1 |
|
228 | self.idp +=1 | |
227 | self.projectObj= Project () |
|
229 | self.projectObj= Project () | |
228 | self.__projObjDict[self.idp]=self.projectObj |
|
230 | self.__projObjDict[self.idp]=self.projectObj | |
229 |
|
||||
230 | id = self.idp |
|
231 | id = self.idp | |
231 | name = str(self.proName.text()) |
|
232 | name = str(self.proName.text()) | |
232 | try: |
|
233 | try: | |
@@ -241,7 +242,12 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
241 | self.projectObj.setup(id = id, name=name, description=desc) |
|
242 | self.projectObj.setup(id = id, name=name, description=desc) | |
242 | datatype = str(self.proComDataType.currentText()) |
|
243 | datatype = str(self.proComDataType.currentText()) | |
243 | path = str(self.proDataPath.text()) |
|
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 | online = int(self.online) |
|
251 | online = int(self.online) | |
246 | if online ==0: |
|
252 | if online ==0: | |
247 | delay=0 |
|
253 | delay=0 | |
@@ -295,11 +301,11 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
295 |
|
301 | |||
296 | #Disable tabProject after finish the creation |
|
302 | #Disable tabProject after finish the creation | |
297 | self.tabProject.setEnabled(False) |
|
303 | self.tabProject.setEnabled(False) | |
298 | self.console.clear() |
|
304 | # self.console.clear() | |
299 | self.console.append("Now you can add a Unit Processing") |
|
305 | # self.console.append("Now you can add a Unit Processing") | |
300 | self.console.append("If you want to save your project") |
|
306 | # self.console.append("If you want to save your project") | |
301 | self.console.append("click on your project name in the Tree Project Explorer") |
|
307 | # self.console.append("click on your project name in the Tree Project Explorer") | |
302 |
|
308 | # | ||
303 |
|
309 | |||
304 | @pyqtSignature("") |
|
310 | @pyqtSignature("") | |
305 | def on_proClear_clicked(self): |
|
311 | def on_proClear_clicked(self): | |
@@ -483,7 +489,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
483 | self.console.append("If you want to save your project") |
|
489 | self.console.append("If you want to save your project") | |
484 | self.console.append("click on your project name in the Tree Project Explorer") |
|
490 | self.console.append("click on your project name in the Tree Project Explorer") | |
485 |
|
491 | |||
486 | #----------------Voltage Graph-------------------# |
|
492 | #----------------Voltage Graph-------------------# | |
487 | @pyqtSignature("int") |
|
493 | @pyqtSignature("int") | |
488 | def on_volGraphCebSave_stateChanged(self, p0): |
|
494 | def on_volGraphCebSave_stateChanged(self, p0): | |
489 | """ |
|
495 | """ | |
@@ -511,24 +517,24 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
511 | self.volGraphOk.setEnabled(False) |
|
517 | self.volGraphOk.setEnabled(False) | |
512 | return |
|
518 | return | |
513 |
|
519 | |||
514 |
|
||||
515 | @pyqtSignature("int") |
|
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 |
|
523 | Check Box habilita ingresode del numero de Integraciones a realizar | |
519 | """ |
|
524 | """ | |
520 |
if |
|
525 | if p0==0: | |
521 | self.volGraphIdFigure.setEnabled(False) |
|
526 | ||
522 | self.volGraphWintitle.setEnabled(False) |
|
|||
523 | self.volGraphChannelList.setEnabled(False) |
|
527 | self.volGraphChannelList.setEnabled(False) | |
524 |
self.volGraph |
|
528 | self.volGraphfreqrange.setEnabled(False) | |
525 |
self.volGraph |
|
529 | self.volGraphHeightrange.setEnabled(False) | |
526 |
if |
|
530 | if p0==2: | |
527 | self.volGraphIdFigure.setEnabled(True) |
|
531 | ||
528 | self.volGraphWintitle.setEnabled(True) |
|
|||
529 | self.volGraphChannelList.setEnabled(True) |
|
532 | self.volGraphChannelList.setEnabled(True) | |
530 |
self.volGraph |
|
533 | self.volGraphfreqrange.setEnabled(True) | |
531 |
self.volGraph |
|
534 | self.volGraphHeightrange.setEnabled(True) | |
|
535 | self.idImag += 1 | |||
|
536 | print self.idImag | |||
|
537 | ||||
532 |
|
538 | |||
533 | @pyqtSignature(" ") |
|
539 | @pyqtSignature(" ") | |
534 | def on_volGraphOk_clicked(self): |
|
540 | def on_volGraphOk_clicked(self): | |
@@ -540,15 +546,14 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
540 | if self.__upObjDict.has_key(i)==True: |
|
546 | if self.__upObjDict.has_key(i)==True: | |
541 | self.upObj=self.__upObjDict[i] |
|
547 | self.upObj=self.__upObjDict[i] | |
542 |
|
548 | |||
543 |
if self.volGraphC |
|
549 | if self.volGraphCebshow.isChecked(): | |
544 | opObj10=self.upObj.addOperation(name='Scope', optype='other') |
|
550 | opObj10=self.upObj.addOperation(name='Scope', optype='other') | |
545 | self.operObjList.append(opObj10) |
|
551 | self.operObjList.append(opObj10) | |
546 | wintitle=self.volGraphWintitle.text() |
|
|||
547 | channelList=self.volGraphChannelList.text() |
|
552 | channelList=self.volGraphChannelList.text() | |
548 |
xvalue= self.volGraph |
|
553 | xvalue= self.volGraphfreqrange.text() | |
549 |
yvalue= self.volGraph |
|
554 | yvalue= self.volGraphHeightrange.text() | |
550 |
|
555 | |||
551 |
opObj1 |
|
556 | opObj1.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
552 | opObj10.addParameter(name='channelList', value=channelList, format='int') |
|
557 | opObj10.addParameter(name='channelList', value=channelList, format='int') | |
553 | xvalueList=xvalue.split(',') |
|
558 | xvalueList=xvalue.split(',') | |
554 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') |
|
559 | opObj10.addParameter(name='xmin', value=xvalueList[0], format='int') | |
@@ -561,11 +566,12 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
561 | opObj10.addParameter(name='save', value='1', format='int') |
|
566 | opObj10.addParameter(name='save', value='1', format='int') | |
562 | opObj10.addParameter(name='figpath', value= self.volGraphPath.text()) |
|
567 | opObj10.addParameter(name='figpath', value= self.volGraphPath.text()) | |
563 | opObj10.addParameter(name='figfile', value= self.volGraphPrefix.text()) |
|
568 | opObj10.addParameter(name='figfile', value= self.volGraphPrefix.text()) | |
|
569 | ||||
564 | self.tabgraphVoltage.setEnabled(False) |
|
570 | self.tabgraphVoltage.setEnabled(False) | |
565 | self.console.clear() |
|
571 | self.console.clear() | |
566 | self.console.append("If you want to save your project") |
|
572 | self.console.append("If you want to save your project") | |
567 | self.console.append("click on your project name in the Tree Project Explorer") |
|
573 | self.console.append("click on your project name in the Tree Project Explorer") | |
568 |
|
|
574 | ||
569 | #------Spectra operation--------# |
|
575 | #------Spectra operation--------# | |
570 | @pyqtSignature("int") |
|
576 | @pyqtSignature("int") | |
571 | def on_specOpCebnFFTpoints_stateChanged(self, p0): |
|
577 | def on_specOpCebnFFTpoints_stateChanged(self, p0): | |
@@ -678,7 +684,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
678 | opObj10.addParameter(name='mode', value=value,format='int') |
|
684 | opObj10.addParameter(name='mode', value=value,format='int') | |
679 |
|
685 | |||
680 |
|
686 | |||
681 | self.tabopSpectra.setEnabled(False) |
|
687 | #self.tabopSpectra.setEnabled(False) | |
682 | self.console.clear() |
|
688 | self.console.clear() | |
683 | self.console.append("If you want to save your project") |
|
689 | self.console.append("If you want to save your project") | |
684 | self.console.append("click on your project name in the Tree Project Explorer") |
|
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 | #------Spectra Graph--------# |
|
693 | #------Spectra Graph--------# | |
688 | @pyqtSignature("int") |
|
694 | @pyqtSignature("int") | |
689 |
def on_specGraphC |
|
695 | def on_specGraphCebSpectraplot_stateChanged(self, p0): | |
690 | if index==0: |
|
696 | ||
691 | print "return" |
|
697 | if p0==2: | |
692 |
|
698 | self.specGgraphFreq.setEnabled(True) | ||
693 | if index==1: |
|
699 | self.specGgraphHeight.setEnabled(True) | |
694 |
self. |
|
700 | self.specGgraphDbsrange.setEnabled(True) | |
695 | self.specGraphTimeRange.setEnabled(False) |
|
701 | if p0==0: | |
696 |
|
702 | self.specGgraphFreq.setEnabled(False) | ||
697 | if index==2: |
|
703 | self.specGgraphHeight.setEnabled(False) | |
698 |
self. |
|
704 | self.specGgraphDbsrange.setEnabled(False) | |
699 | self.specGraphTimeRange.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: |
|
719 | @pyqtSignature("int") | |
706 | self.setspecGraph() |
|
720 | def on_specGraphCebRTIplot_stateChanged(self, p0): | |
707 | self.specGraphTimeRange.setEnabled(False) |
|
|||
708 |
|
721 | |||
709 |
if |
|
722 | if p0==2: | |
710 |
self. |
|
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: |
|
732 | ||
713 | self.setspecGraph() |
|
733 | @pyqtSignature("int") | |
714 | self.specGgraphzrange.setEnabled(False) |
|
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 | @pyqtSignature("int") |
|
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 | if p0==2: |
|
784 | if p0==2: | |
@@ -724,7 +788,58 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
724 | if p0==0: |
|
788 | if p0==0: | |
725 | self.specGraphPath.setEnabled(False) |
|
789 | self.specGraphPath.setEnabled(False) | |
726 | self.specGraphPrefix.setEnabled(False) |
|
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 | @pyqtSignature("") |
|
843 | @pyqtSignature("") | |
729 | def on_specGraphToolPath_clicked(self): |
|
844 | def on_specGraphToolPath_clicked(self): | |
730 | """ |
|
845 | """ | |
@@ -743,160 +858,342 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
743 | if self.__arbolDict[i]==self.indexclick: |
|
858 | if self.__arbolDict[i]==self.indexclick: | |
744 | if self.__upObjDict.has_key(i)==True: |
|
859 | if self.__upObjDict.has_key(i)==True: | |
745 | self.upObj=self.__upObjDict[i] |
|
860 | self.upObj=self.__upObjDict[i] | |
746 |
|
861 | if self.specGraphCebSpectraplot.isChecked(): | ||
747 | if self.specGraphComType.currentIndex()==1: |
|
|||
748 | opObj10=self.upObj.addOperation(name='SpectraPlot',optype='other') |
|
862 | opObj10=self.upObj.addOperation(name='SpectraPlot',optype='other') | |
749 | self.properSpecGraph(opObj10) |
|
863 | ||
750 |
|
|
864 | self.idImag += 1 | |
751 | if self.specGraphComType.currentIndex()==2: |
|
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 | opObj10=self.upObj.addOperation(name='CrossSpectraPlot',optype='other') |
|
911 | opObj10=self.upObj.addOperation(name='CrossSpectraPlot',optype='other') | |
753 | self.properSpecGraph(opObj10) |
|
912 | ||
754 | opObj10.addParameter(name='power_cmap', value='jet', format='str') |
|
913 | opObj10.addParameter(name='power_cmap', value='jet', format='str') | |
755 | opObj10.addParameter(name='coherence_cmap', value='jet', format='str') |
|
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: |
|
997 | zvalue= self.specGgraphDbsrange.text() | |
759 | opObj10=self.upObj.addOperation(name='RTIPlot',optype='other') |
|
998 | if self.specGgraphDbsrange.isModified(): | |
760 | self.properSpecGraph(opObj10) |
|
999 | zvalueList=zvalue.split(",") | |
761 | value =self.specGraphTimeRange.text() |
|
1000 | try: | |
762 | opObj10.addParameter(name='timerange', value=value, format='int') |
|
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 | opObj10=self.upObj.addOperation(name='CoherenceMap',optype='other') |
|
1014 | opObj10=self.upObj.addOperation(name='CoherenceMap',optype='other') | |
766 | self.properSpecGraph(opObj10) |
|
1015 | ||
767 | opObj10.addParameter(name='coherence_cmap', value='jet', format='str') |
|
1016 | opObj10.addParameter(name='coherence_cmap', value='jet', format='str') | |
768 | opObj10.addParameter(name='phase_cmap', value='RdBu_r', format='str') |
|
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 | opObj10=self.upObj.addOperation(name='RTIfromNoise',optype='other') |
|
1066 | opObj10=self.upObj.addOperation(name='RTIfromNoise',optype='other') | |
772 | self.properSpecGraph(opObj10) |
|
1067 | ||
773 | self.specGgraphzrange.setEnabled(False) |
|
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 | opObj10=self.upObj.addOperation(name='ProfilePlot',optype='other') |
|
1105 | opObj10=self.upObj.addOperation(name='ProfilePlot',optype='other') | |
777 |
self. |
|
1106 | self.idImag += 1 | |
778 | self.specGgraphzrange.setEnabled(False) |
|
1107 | opObj10.addParameter(name='idfigure', value=int(self.idImag), format='int') | |
779 |
|
|
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 | #self.tabgraphSpectra.setEnabled(False) |
|
1143 | #self.tabgraphSpectra.setEnabled(False) | |
782 | self.specGraphComType.setEnabled(False) |
|
1144 | ||
783 | self.console.clear() |
|
1145 | self.console.clear() | |
784 | self.console.append("If you want to save your project") |
|
1146 | self.console.append("If you want to save your project") | |
785 | self.console.append("click on your project name in the Tree Project Explorer") |
|
1147 | self.console.append("click on your project name in the Tree Project Explorer") | |
786 |
|
|
1148 | ||
787 | @pyqtSignature("") |
|
1149 | @pyqtSignature("") | |
788 | def on_specGraphClear_clicked(self): |
|
1150 | def on_specGraphClear_clicked(self): | |
789 | self.clearspecGraph() |
|
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 | def setspecGraph(self): |
|
1153 | def setspecGraph(self): | |
844 | self.specGraphIdFigure.setEnabled(True) |
|
1154 | ||
845 |
self.specG |
|
1155 | self.specGgraphChannelList.setEnabled(True) | |
846 | self.specGraphChannelList.setEnabled(True) |
|
1156 | ||
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) |
|
|||
854 | def clearspecGraph(self): |
|
1157 | def clearspecGraph(self): | |
855 | self.specGraphComType.setEnabled(True) |
|
1158 | ||
856 |
self.specG |
|
1159 | self.specGgraphChannelList.clear() | |
857 | self.specGraphIdFigure.clear() |
|
1160 | ||
858 | self.specGraphWinTitle.clear() |
|
|||
859 | self.specGraphChannelList.clear() |
|
|||
860 | self.specGgraphxrange.clear() |
|
|||
861 | self.specGgraphyrange.clear() |
|
|||
862 | self.specGgraphzrange.clear() |
|
|||
863 | self.specGraphTimeRange.clear() |
|
|||
864 |
|
1161 | |||
865 | def playProject(self): |
|
1162 | def playProject(self): | |
866 |
|
1163 | |||
867 | for i in self.__arbolDict: |
|
1164 | for i in self.__arbolDict: | |
868 | if self.__arbolDict[i]==self.indexclick: |
|
1165 | if self.__arbolDict[i]==self.indexclick: | |
869 |
|
|
1166 | if self.__projObjDict.has_key(i)==True: | |
870 | else: |
|
1167 | self.projectObj=self.__projObjDict[i] | |
871 | self.console.clear() |
|
1168 | filename=self.pathWorkSpace+"/"+str(self.projectObj.name)+str(self.projectObj.id)+".xml" | |
872 |
self.console. |
|
1169 | self.console.clear() | |
873 | return 0 |
|
1170 | self.console.append("Please Wait...") | |
874 | filename=self.pathWorkSpace+str(self.projectObj.name)+str(self.projectObj.id)+".xml" |
|
1171 | self.projectObj.readXml(filename) | |
875 |
self.projectObj. |
|
1172 | self.projectObj.createObjects() | |
876 | #controllerObj.printattr() |
|
1173 | self.projectObj.connectObjects() | |
877 |
|
1174 | self.projectObj.run() | ||
878 | self.projectObj.createObjects() |
|
1175 | return 0 | |
879 | self.projectObj.connectObjects() |
|
1176 | else: | |
880 | self.projectObj.run() |
|
1177 | self.console.clear() | |
881 | self.console.clear() |
|
1178 | self.console.append("First,click on current project") | |
882 | self.console.append("Please Wait...") |
|
1179 | ||
883 |
|
1180 | |||
884 |
|
1181 | |||
885 | def saveProject(self): |
|
1182 | def saveProject(self): | |
886 |
|
1183 | print self.indexclick | ||
887 |
for i in self.__arbolDict: |
|
1184 | for i in self.__arbolDict: | |
888 | if self.__arbolDict[i]==self.indexclick: |
|
1185 | if self.__arbolDict[i]==self.indexclick: | |
889 |
|
|
1186 | if self.__projObjDict.has_key(i)==True: | |
890 | else: |
|
1187 | self.projectObj=self.__projObjDict[int(i)] | |
891 |
|
|
1188 | else: | |
892 | self.console.append("First, Click on current project") |
|
1189 | self.console.clear() | |
893 | return 0 |
|
1190 | self.console.append("First,click on current project") | |
894 |
|
1191 | |||
895 | filename=self.pathWorkSpace+str(self.projectObj.name)+str(self.projectObj.id)+".xml" |
|
1192 | filename=self.pathWorkSpace+"/"+str(self.projectObj.name)+str(self.projectObj.id)+".xml" | |
896 | self.projectObj.writeXml(filename) |
|
|||
897 | self.console.clear() |
|
1193 | self.console.clear() | |
|
1194 | self.projectObj.writeXml(filename) | |||
898 | self.console.append("Now, you can push the icon Start in the toolbar or push start in menu run") |
|
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 | def clickFunction(self,index): |
|
1198 | def clickFunction(self,index): | |
902 | self.indexclick= index.model().itemFromIndex(index) |
|
1199 | self.indexclick= index.model().itemFromIndex(index) | |
@@ -906,6 +1203,7 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
906 | if self.__arbolDict[i]==self.indexclick: |
|
1203 | if self.__arbolDict[i]==self.indexclick: | |
907 | if self.__projObjDict.has_key(i)==True: |
|
1204 | if self.__projObjDict.has_key(i)==True: | |
908 | #self.tabProject.setEnabled(True) |
|
1205 | #self.tabProject.setEnabled(True) | |
|
1206 | ||||
909 | self.proName.setText(str(self.__projObjDict[i].name)) |
|
1207 | self.proName.setText(str(self.__projObjDict[i].name)) | |
910 | self.proDataPath.setText(str(self.readUnitConfObjList[i-1].path)) |
|
1208 | self.proDataPath.setText(str(self.readUnitConfObjList[i-1].path)) | |
911 |
|
1209 | |||
@@ -970,10 +1268,20 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
970 |
|
1268 | |||
971 | if self.indexclick.text()=='Spectra': |
|
1269 | if self.indexclick.text()=='Spectra': | |
972 | self.tabSpectra.setEnabled(True) |
|
1270 | self.tabSpectra.setEnabled(True) | |
|
1271 | self.specOpnFFTpoints.setEnabled(True) | |||
973 | self.tabVoltage.setEnabled(False) |
|
1272 | self.tabVoltage.setEnabled(False) | |
974 | self.tabCorrelation.setEnabled(False) |
|
1273 | self.tabCorrelation.setEnabled(False) | |
975 |
self.tabWidgetProject.setCurrentWidget(self.tabSpectra) |
|
1274 | self.tabWidgetProject.setCurrentWidget(self.tabSpectra) | |
976 |
|
|
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 | if self.indexclick.text()=='Correlation': |
|
1285 | if self.indexclick.text()=='Correlation': | |
978 | self.tabCorrelation.setEnabled(True) |
|
1286 | self.tabCorrelation.setEnabled(True) | |
979 | self.tabVoltage.setEnabled(False) |
|
1287 | self.tabVoltage.setEnabled(False) | |
@@ -1001,8 +1309,6 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1001 | for i in self.__arbolDict: |
|
1309 | for i in self.__arbolDict: | |
1002 | if self.__arbolDict[i]==self.indexclick: |
|
1310 | if self.__arbolDict[i]==self.indexclick: | |
1003 | self.arbolItem=self.__arbolDict[i] |
|
1311 | self.arbolItem=self.__arbolDict[i] | |
1004 | #print self.arbolItem |
|
|||
1005 | #self.treeProjectExplorer.removeRows(self.arbolItem) |
|
|||
1006 | self.arbolItem.removeRows(self.arbolItem.row(),1) |
|
1312 | self.arbolItem.removeRows(self.arbolItem.row(),1) | |
1007 |
|
1313 | |||
1008 | if action == quitAction3: |
|
1314 | if action == quitAction3: | |
@@ -1106,7 +1412,6 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1106 | files= os.listdir(path) |
|
1412 | files= os.listdir(path) | |
1107 | for thisFile in files: |
|
1413 | for thisFile in files: | |
1108 | thisExt = os.path.splitext(thisFile)[-1] |
|
1414 | thisExt = os.path.splitext(thisFile)[-1] | |
1109 | print thisExt |
|
|||
1110 | if thisExt != ext: |
|
1415 | if thisExt != ext: | |
1111 | self.console.clear() |
|
1416 | self.console.clear() | |
1112 | self.console.append("There is no datatype selected in the path Directory") |
|
1417 | self.console.append("There is no datatype selected in the path Directory") | |
@@ -1211,11 +1516,21 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1211 | self.proComEndDate.setCurrentIndex(self.proComStartDate.count()-1) |
|
1516 | self.proComEndDate.setCurrentIndex(self.proComStartDate.count()-1) | |
1212 |
|
1517 | |||
1213 | def setWorkSpaceGUI(self,pathWorkSpace): |
|
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 | def setParameter(self): |
|
1529 | def setParameter(self): | |
1217 | self.setWindowTitle("ROJ-Signal Chain") |
|
1530 | self.setWindowTitle("ROJ-Signal Chain") | |
1218 | self.setWindowIcon(QtGui.QIcon("figure/adn.jpg")) |
|
1531 | self.setWindowIcon(QtGui.QIcon("figure/adn.jpg")) | |
|
1532 | sys.stdout = ShowMeConsole(textWritten=self.normalOutputWritten) | |||
|
1533 | ||||
1219 | self.tabWidgetProject.setEnabled(False) |
|
1534 | self.tabWidgetProject.setEnabled(False) | |
1220 | self.tabVoltage.setEnabled(False) |
|
1535 | self.tabVoltage.setEnabled(False) | |
1221 | self.tabSpectra.setEnabled(False) |
|
1536 | self.tabSpectra.setEnabled(False) | |
@@ -1284,10 +1599,10 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1284 | self.volGraphToolPath.setEnabled(False) |
|
1599 | self.volGraphToolPath.setEnabled(False) | |
1285 |
|
1600 | |||
1286 | #set Graph Voltage |
|
1601 | #set Graph Voltage | |
1287 | self.volGraphIdFigure.setEnabled(False) |
|
|||
1288 | self.volGraphWintitle.setEnabled(False) |
|
|||
1289 | self.volGraphChannelList.setEnabled(False) |
|
1602 | self.volGraphChannelList.setEnabled(False) | |
1290 |
self.volGraph |
|
1603 | self.volGraphfreqrange.setEnabled(False) | |
|
1604 | self.volGraphHeightrange.setEnabled(False) | |||
|
1605 | ||||
1291 | self.volGraphyrange.setEnabled(False) |
|
1606 | self.volGraphyrange.setEnabled(False) | |
1292 | #set Operation Spectra |
|
1607 | #set Operation Spectra | |
1293 | self.specOpnFFTpoints.setEnabled(False) |
|
1608 | self.specOpnFFTpoints.setEnabled(False) | |
@@ -1301,13 +1616,13 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1301 | self.specOpChannel.setEnabled(False) |
|
1616 | self.specOpChannel.setEnabled(False) | |
1302 | self.specOpHeights.setEnabled(False) |
|
1617 | self.specOpHeights.setEnabled(False) | |
1303 | #set Graph Spectra |
|
1618 | #set Graph Spectra | |
1304 |
self.specG |
|
1619 | self.specGgraphChannelList.setEnabled(False) | |
1305 |
self.specG |
|
1620 | self.specGgraphFreq.setEnabled(False) | |
1306 |
self.specG |
|
1621 | self.specGgraphHeight.setEnabled(False) | |
1307 |
self.specGgraph |
|
1622 | self.specGgraphDbsrange.setEnabled(False) | |
1308 |
self.specGgraph |
|
1623 | self.specGgraphmagnitud.setEnabled(False) | |
1309 |
self.specGgraph |
|
1624 | self.specGgraphTimeRange.setEnabled(False) | |
1310 |
self.specG |
|
1625 | self.specGgraphPhaserange.setEnabled(False) | |
1311 | self.specGraphPath.setEnabled(False) |
|
1626 | self.specGraphPath.setEnabled(False) | |
1312 | self.specGraphToolPath.setEnabled(False) |
|
1627 | self.specGraphToolPath.setEnabled(False) | |
1313 | self.specGraphPrefix.setEnabled(False) |
|
1628 | self.specGraphPrefix.setEnabled(False) | |
@@ -1327,11 +1642,10 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1327 | self.volOpCohInt.setToolTip('Example: 100') |
|
1642 | self.volOpCohInt.setToolTip('Example: 100') | |
1328 | self.volOpOk.setToolTip('If you have finish, please Ok ') |
|
1643 | self.volOpOk.setToolTip('If you have finish, please Ok ') | |
1329 | #tool tip gui volGraph |
|
1644 | #tool tip gui volGraph | |
1330 |
self.volGraph |
|
1645 | self.volGraphfreqrange.setToolTip('Example: 10,150') | |
1331 |
self.volGraph |
|
1646 | self.volGraphHeightrange.setToolTip('Example: 20,180') | |
1332 | self.volGraphyrange.setToolTip('Example: 20,180') |
|
|||
1333 | self.volGraphOk.setToolTip('If you have finish, please Ok ') |
|
1647 | self.volGraphOk.setToolTip('If you have finish, please Ok ') | |
1334 |
|
|
1648 | #tool tip gui specOp | |
1335 | self.specOpnFFTpoints.setToolTip('Example: 100') |
|
1649 | self.specOpnFFTpoints.setToolTip('Example: 100') | |
1336 | self.specOpIncoherent.setToolTip('Example: 150') |
|
1650 | self.specOpIncoherent.setToolTip('Example: 150') | |
1337 | self.specOpRemoveDC .setToolTip('Example: 1') |
|
1651 | self.specOpRemoveDC .setToolTip('Example: 1') | |
@@ -1341,15 +1655,13 class BasicWindow(QMainWindow,Ui_BasicWindow): | |||||
1341 | self.specOpHeights.setToolTip('Example: 90,180') |
|
1655 | self.specOpHeights.setToolTip('Example: 90,180') | |
1342 | self.specOppairsList.setToolTip('Example: (0,1),(2,3)') |
|
1656 | self.specOppairsList.setToolTip('Example: (0,1),(2,3)') | |
1343 | #tool tip gui specGraph |
|
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 | class UnitProcess(QMainWindow, Ui_UnitProcess): |
|
1666 | class UnitProcess(QMainWindow, Ui_UnitProcess): | |
1355 | """ |
|
1667 | """ | |
@@ -1424,4 +1736,9 class UnitProcess(QMainWindow, Ui_UnitProcess): | |||||
1424 |
|
1736 | |||
1425 | def closeEvent(self, event): |
|
1737 | def closeEvent(self, event): | |
1426 | self.closed.emit() |
|
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