|
@@
-56,6
+56,33
def isRadarPath(path):
|
|
56
|
return 0
|
|
56
|
return 0
|
|
57
|
|
|
57
|
|
|
58
|
return 1
|
|
58
|
return 1
|
|
|
|
|
59
|
|
|
|
|
|
60
|
def isInt(value):
|
|
|
|
|
61
|
|
|
|
|
|
62
|
try:
|
|
|
|
|
63
|
int(value)
|
|
|
|
|
64
|
except:
|
|
|
|
|
65
|
return 0
|
|
|
|
|
66
|
|
|
|
|
|
67
|
return 1
|
|
|
|
|
68
|
|
|
|
|
|
69
|
def isFloat(value):
|
|
|
|
|
70
|
|
|
|
|
|
71
|
try:
|
|
|
|
|
72
|
float(value)
|
|
|
|
|
73
|
except:
|
|
|
|
|
74
|
return 0
|
|
|
|
|
75
|
|
|
|
|
|
76
|
return 1
|
|
|
|
|
77
|
|
|
|
|
|
78
|
def isList(value):
|
|
|
|
|
79
|
|
|
|
|
|
80
|
x = ast.literal_eval(value)
|
|
|
|
|
81
|
|
|
|
|
|
82
|
if type(x) in (tuple, list):
|
|
|
|
|
83
|
return 1
|
|
|
|
|
84
|
|
|
|
|
|
85
|
return 0
|
|
59
|
|
|
86
|
|
|
60
|
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
87
|
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
61
|
"""
|
|
88
|
"""
|
|
@@
-436,7
+463,9
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
436
|
|
|
463
|
|
|
437
|
self.actionStart.setEnabled(False)
|
|
464
|
self.actionStart.setEnabled(False)
|
|
438
|
self.actionStarToolbar.setEnabled(False)
|
|
465
|
self.actionStarToolbar.setEnabled(False)
|
|
439
|
|
|
466
|
|
|
|
|
|
467
|
self.console.clear()
|
|
|
|
|
468
|
|
|
440
|
if self.create:
|
|
469
|
if self.create:
|
|
441
|
|
|
470
|
|
|
442
|
projectId = self.__getNewProjectId()
|
|
471
|
projectId = self.__getNewProjectId()
|
|
@@
-705,6
+734,9
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
705
|
self.actionSaveToolbar.setEnabled(False)
|
|
734
|
self.actionSaveToolbar.setEnabled(False)
|
|
706
|
self.actionStarToolbar.setEnabled(False)
|
|
735
|
self.actionStarToolbar.setEnabled(False)
|
|
707
|
|
|
736
|
|
|
|
|
|
737
|
self.console.clear()
|
|
|
|
|
738
|
self.console.append("Checking input parameters ...")
|
|
|
|
|
739
|
|
|
708
|
puObj = self.getSelectedItemObj()
|
|
740
|
puObj = self.getSelectedItemObj()
|
|
709
|
puObj.removeOperations()
|
|
741
|
puObj.removeOperations()
|
|
710
|
|
|
742
|
|
|
@@
-718,10
+750,13
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
718
|
radarfreq = float(self.volOpRadarfrequency.text())*1e6
|
|
750
|
radarfreq = float(self.volOpRadarfrequency.text())*1e6
|
|
719
|
except:
|
|
751
|
except:
|
|
720
|
self.console.clear()
|
|
752
|
self.console.clear()
|
|
721
|
self.console.append("Write the parameter Radar Frequency type float")
|
|
753
|
self.console.append("Invalid value '%s' for Radar Frequency" %value)
|
|
722
|
return 0
|
|
754
|
return 0
|
|
|
|
|
755
|
|
|
723
|
opObj = puObj.addOperation(name=name_operation)
|
|
756
|
opObj = puObj.addOperation(name=name_operation)
|
|
724
|
opObj.addParameter(name=name_parameter, value=radarfreq, format=format)
|
|
757
|
if not opObj.addParameter(name=name_parameter, value=radarfreq, format=format):
|
|
|
|
|
758
|
self.console.append("Invalid value '%s' for %s" %(value,name_parameter))
|
|
|
|
|
759
|
return 0
|
|
725
|
|
|
760
|
|
|
726
|
if self.volOpCebChannels.isChecked():
|
|
761
|
if self.volOpCebChannels.isChecked():
|
|
727
|
value = str(self.volOpChannel.text())
|
|
762
|
value = str(self.volOpChannel.text())
|
|
@@
-739,7
+774,9
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
739
|
name_parameter = 'channelIndexList'
|
|
774
|
name_parameter = 'channelIndexList'
|
|
740
|
|
|
775
|
|
|
741
|
opObj = puObj.addOperation(name=name_operation)
|
|
776
|
opObj = puObj.addOperation(name=name_operation)
|
|
742
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
777
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
778
|
self.console.append("Invalid value '%s' for %s" %(value,name_parameter))
|
|
|
|
|
779
|
return 0
|
|
743
|
|
|
780
|
|
|
744
|
if self.volOpCebHeights.isChecked():
|
|
781
|
if self.volOpCebHeights.isChecked():
|
|
745
|
value = str(self.volOpHeights.text())
|
|
782
|
value = str(self.volOpHeights.text())
|
|
@@
-773,7
+810,9
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
773
|
name_operation = 'filterByHeights'
|
|
810
|
name_operation = 'filterByHeights'
|
|
774
|
name_parameter = 'window'
|
|
811
|
name_parameter = 'window'
|
|
775
|
opObj = puObj.addOperation(name=name_operation)
|
|
812
|
opObj = puObj.addOperation(name=name_operation)
|
|
776
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
813
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
814
|
self.console.append("Invalid value '%s' for %s" %(value,name_parameter))
|
|
|
|
|
815
|
return 0
|
|
777
|
|
|
816
|
|
|
778
|
if self.volOpCebProfile.isChecked():
|
|
817
|
if self.volOpCebProfile.isChecked():
|
|
779
|
value = str(self.volOpProfile.text())
|
|
818
|
value = str(self.volOpProfile.text())
|
|
@@
-793,61
+832,90
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
793
|
name_parameter = 'rangeList'
|
|
832
|
name_parameter = 'rangeList'
|
|
794
|
|
|
833
|
|
|
795
|
opObj = puObj.addOperation(name='ProfileSelector', optype='other')
|
|
834
|
opObj = puObj.addOperation(name='ProfileSelector', optype='other')
|
|
796
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
835
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
836
|
self.console.append("Invalid value '%s' for %s" %(value,name_parameter))
|
|
|
|
|
837
|
return 0
|
|
797
|
|
|
838
|
|
|
798
|
if self.volOpCebDecodification.isChecked():
|
|
839
|
if self.volOpCebDecodification.isChecked():
|
|
799
|
|
|
840
|
name_operation = 'Decoder'
|
|
800
|
if self.volOpComMode.currentIndex() == 0:
|
|
841
|
|
|
801
|
mode = '0'
|
|
842
|
#User defined
|
|
802
|
if self.volOpComMode.currentIndex() == 1:
|
|
843
|
nBaud = None
|
|
803
|
mode = '1'
|
|
844
|
nCode = None
|
|
804
|
if self.volOpComMode.currentIndex() == 2:
|
|
845
|
|
|
805
|
mode = '2'
|
|
846
|
code = str(self.volOpCode.text())
|
|
806
|
|
|
847
|
try:
|
|
807
|
if self.volOpComCode.currentIndex() == 0:
|
|
848
|
code_tmp = ast.literal_eval(code)
|
|
808
|
opObj = puObj.addOperation(name='Decoder', optype='other')
|
|
849
|
except:
|
|
809
|
opObj.addParameter(name='mode', value=mode, format='int')
|
|
850
|
code_tmp = []
|
|
|
|
|
851
|
|
|
|
|
|
852
|
if len(code_tmp) < 1:
|
|
|
|
|
853
|
self.console.append("Please write a right value for Code (Exmaple: [1,1,-1], [1,-1,1])")
|
|
|
|
|
854
|
return 0
|
|
|
|
|
855
|
|
|
|
|
|
856
|
if type(code_tmp) not in (tuple, list):
|
|
|
|
|
857
|
self.console.append("Please write a right value for Code (Exmaple: [1,1,-1], [1,-1,1])")
|
|
|
|
|
858
|
return 0
|
|
|
|
|
859
|
|
|
|
|
|
860
|
if len(code_tmp) > 1 and type(code_tmp[0]) in (tuple, list): #[ [1,-1,1], [1,1,-1] ]
|
|
|
|
|
861
|
nBaud = len(code_tmp[0])
|
|
|
|
|
862
|
nCode = len(code_tmp)
|
|
|
|
|
863
|
elif len(code_tmp) == 1 and type(code_tmp[0]) in (tuple, list): #[ [1,-1,1] ]
|
|
|
|
|
864
|
nBaud = len(code_tmp[0])
|
|
|
|
|
865
|
nCode = 1
|
|
|
|
|
866
|
elif type(code_tmp[0]) in (int, float): #[1,-1,1] or (1,-1,1)
|
|
|
|
|
867
|
nBaud = len(code_tmp)
|
|
|
|
|
868
|
nCode = 1
|
|
810
|
else:
|
|
869
|
else:
|
|
811
|
#User defined
|
|
870
|
self.console.append("Please write a right value for Code (Exmaple: [1,1,-1], [1,-1,1])")
|
|
812
|
code = str(self.volOpCode.text())
|
|
871
|
return 0
|
|
813
|
try:
|
|
|
|
|
814
|
code_tmp = ast.literal_eval(code)
|
|
|
|
|
815
|
except:
|
|
|
|
|
816
|
code_tmp = []
|
|
|
|
|
817
|
|
|
872
|
|
|
818
|
if len(code_tmp) < 1:
|
|
873
|
if not nBaud or not nCode:
|
|
819
|
self.console.append("Please fill the code value")
|
|
874
|
self.console.append("Please write a right value for Code")
|
|
820
|
return 0
|
|
875
|
return 0
|
|
|
|
|
876
|
|
|
|
|
|
877
|
opObj = puObj.addOperation(name='Decoder', optype='other')
|
|
|
|
|
878
|
|
|
|
|
|
879
|
code = code.replace("(", "")
|
|
|
|
|
880
|
code = code.replace(")", "")
|
|
|
|
|
881
|
code = code.replace("[", "")
|
|
|
|
|
882
|
code = code.replace("]", "")
|
|
|
|
|
883
|
|
|
|
|
|
884
|
if not opObj.addParameter(name='code', value=code, format='intlist'):
|
|
|
|
|
885
|
self.console.append("Please write a right value for Code")
|
|
|
|
|
886
|
return 0
|
|
|
|
|
887
|
if not opObj.addParameter(name='nCode', value=nCode, format='int'):
|
|
|
|
|
888
|
self.console.append("Please write a right value for Code")
|
|
|
|
|
889
|
return 0
|
|
|
|
|
890
|
if not opObj.addParameter(name='nBaud', value=nBaud, format='int'):
|
|
|
|
|
891
|
self.console.append("Please write a right value for Code")
|
|
|
|
|
892
|
return 0
|
|
|
|
|
893
|
|
|
|
|
|
894
|
name_parameter = 'mode'
|
|
|
|
|
895
|
format = 'int'
|
|
|
|
|
896
|
|
|
|
|
|
897
|
value = str(self.volOpComMode.currentIndex())
|
|
|
|
|
898
|
|
|
|
|
|
899
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
900
|
self.console.append("Invalid value '%s' for '%s'" %(value,name_parameter))
|
|
|
|
|
901
|
return 0
|
|
821
|
|
|
902
|
|
|
822
|
if len(code_tmp) == 1 or type(code_tmp[0]) != int:
|
|
|
|
|
823
|
nBaud = len(code_tmp[0])
|
|
|
|
|
824
|
nCode = len(code_tmp)
|
|
|
|
|
825
|
else:
|
|
|
|
|
826
|
nBaud = len(code_tmp)
|
|
|
|
|
827
|
nCode = 1
|
|
|
|
|
828
|
|
|
|
|
|
829
|
opObj = puObj.addOperation(name='Decoder', optype='other')
|
|
|
|
|
830
|
|
|
|
|
|
831
|
code = code.replace("(", "")
|
|
|
|
|
832
|
code = code.replace(")", "")
|
|
|
|
|
833
|
code = code.replace("[", "")
|
|
|
|
|
834
|
code = code.replace("]", "")
|
|
|
|
|
835
|
opObj.addParameter(name='code', value=code, format='intlist')
|
|
|
|
|
836
|
opObj.addParameter(name='nCode', value=nCode, format='int')
|
|
|
|
|
837
|
opObj.addParameter(name='nBaud', value=nBaud, format='int')
|
|
|
|
|
838
|
opObj.addParameter(name='mode', value=mode, format='int')
|
|
|
|
|
839
|
|
|
903
|
|
|
840
|
if self.volOpCebFlip.isChecked():
|
|
904
|
if self.volOpCebFlip.isChecked():
|
|
841
|
name_operation = 'deFlip'
|
|
905
|
name_operation = 'deFlip'
|
|
842
|
optype = 'self'
|
|
906
|
optype = 'self'
|
|
843
|
value = str(self.volOpFlip.text())
|
|
907
|
|
|
|
|
|
908
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
|
|
|
909
|
|
|
844
|
name_parameter = 'channelList'
|
|
910
|
name_parameter = 'channelList'
|
|
845
|
format = 'intlist'
|
|
911
|
format = 'intlist'
|
|
|
|
|
912
|
value = str(self.volOpFlip.text())
|
|
|
|
|
913
|
|
|
|
|
|
914
|
if value != "":
|
|
|
|
|
915
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
916
|
self.console.append("Invalid value '%s' for '%s'" %(value,name_parameter))
|
|
|
|
|
917
|
return 0
|
|
846
|
|
|
918
|
|
|
847
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
|
|
|
848
|
if value:
|
|
|
|
|
849
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
|
|
|
850
|
|
|
|
|
|
851
|
if self.volOpCebCohInt.isChecked():
|
|
919
|
if self.volOpCebCohInt.isChecked():
|
|
852
|
name_operation = 'CohInt'
|
|
920
|
name_operation = 'CohInt'
|
|
853
|
optype = 'other'
|
|
921
|
optype = 'other'
|
|
@@
-861,7
+929,10
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
861
|
format = 'float'
|
|
929
|
format = 'float'
|
|
862
|
|
|
930
|
|
|
863
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
931
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
864
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
932
|
|
|
|
|
|
933
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
934
|
self.console.append("Invalid value '%s' for '%s'" %(value,name_parameter))
|
|
|
|
|
935
|
return 0
|
|
865
|
|
|
936
|
|
|
866
|
if self.volGraphCebshow.isChecked():
|
|
937
|
if self.volGraphCebshow.isChecked():
|
|
867
|
name_operation = 'Scope'
|
|
938
|
name_operation = 'Scope'
|
|
@@
-914,7
+985,7
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
914
|
if self.volGraphCebSave.isChecked():
|
|
985
|
if self.volGraphCebSave.isChecked():
|
|
915
|
checkPath = True
|
|
986
|
checkPath = True
|
|
916
|
opObj.addParameter(name='save', value='1', format='int')
|
|
987
|
opObj.addParameter(name='save', value='1', format='int')
|
|
917
|
opObj.addParameter(name='figpath', value=self.volGraphPath.text(), format='str')
|
|
988
|
opObj.addParameter(name='figpath', value=str(self.volGraphPath.text()), format='str')
|
|
918
|
value = str(self.volGraphPrefix.text()).replace(" ","")
|
|
989
|
value = str(self.volGraphPrefix.text()).replace(" ","")
|
|
919
|
if value:
|
|
990
|
if value:
|
|
920
|
opObj.addParameter(name='figfile', value=value, format='str')
|
|
991
|
opObj.addParameter(name='figfile', value=value, format='str')
|
|
@@
-948,11
+1019,10
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
948
|
try:
|
|
1019
|
try:
|
|
949
|
self.refreshPUProperties(puObj)
|
|
1020
|
self.refreshPUProperties(puObj)
|
|
950
|
except:
|
|
1021
|
except:
|
|
951
|
self.console.append("Check input parameters")
|
|
1022
|
self.console.append("An error reading input parameters was found ...Check them!")
|
|
952
|
return 0
|
|
1023
|
return 0
|
|
953
|
|
|
1024
|
|
|
954
|
self.console.append("If you want to save your project")
|
|
1025
|
self.console.append("Save your project and press Play button to start signal processing")
|
|
955
|
self.console.append("click on your project name in the Tree Project Explorer")
|
|
|
|
|
956
|
|
|
1026
|
|
|
957
|
self.actionSaveToolbar.setEnabled(True)
|
|
1027
|
self.actionSaveToolbar.setEnabled(True)
|
|
958
|
self.actionStarToolbar.setEnabled(True)
|
|
1028
|
self.actionStarToolbar.setEnabled(True)
|
|
@@
-1102,68
+1172,72
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1102
|
self.actionSaveToolbar.setEnabled(False)
|
|
1172
|
self.actionSaveToolbar.setEnabled(False)
|
|
1103
|
self.actionStarToolbar.setEnabled(False)
|
|
1173
|
self.actionStarToolbar.setEnabled(False)
|
|
1104
|
|
|
1174
|
|
|
|
|
|
1175
|
self.console.clear()
|
|
|
|
|
1176
|
self.console.append("Checking input parameters ...")
|
|
|
|
|
1177
|
|
|
1105
|
projectObj = self.getSelectedProjectObj()
|
|
1178
|
projectObj = self.getSelectedProjectObj()
|
|
1106
|
puObj = self.getSelectedItemObj()
|
|
1179
|
puObj = self.getSelectedItemObj()
|
|
1107
|
|
|
1180
|
|
|
1108
|
puObj.removeOperations()
|
|
1181
|
puObj.removeOperations()
|
|
1109
|
|
|
1182
|
|
|
1110
|
if self.specOpCebRadarfrequency.isChecked():
|
|
1183
|
if self.specOpCebRadarfrequency.isChecked():
|
|
1111
|
value = self.specOpRadarfrequency.text()
|
|
1184
|
value = str(self.specOpRadarfrequency.text())
|
|
1112
|
format = 'float'
|
|
1185
|
format = 'float'
|
|
1113
|
name_operation = 'setRadarFrequency'
|
|
1186
|
name_operation = 'setRadarFrequency'
|
|
1114
|
name_parameter = 'frequency'
|
|
1187
|
name_parameter = 'frequency'
|
|
1115
|
if not value == "":
|
|
1188
|
|
|
1116
|
try:
|
|
1189
|
if not isFloat(value):
|
|
1117
|
radarfreq = float(self.specOpRadarfrequency.text())*1e6
|
|
1190
|
self.console.clear()
|
|
1118
|
except:
|
|
1191
|
self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter))
|
|
1119
|
self.console.clear()
|
|
1192
|
return 0
|
|
1120
|
self.console.append("Write the parameter Radar Frequency type float")
|
|
1193
|
|
|
1121
|
return 0
|
|
1194
|
radarfreq = float(value)*1e6
|
|
1122
|
opObj = puObj.addOperation(name=name_operation)
|
|
1195
|
opObj = puObj.addOperation(name=name_operation)
|
|
1123
|
opObj.addParameter(name=name_parameter, value=radarfreq, format=format)
|
|
1196
|
opObj.addParameter(name=name_parameter, value=radarfreq, format=format)
|
|
1124
|
|
|
1197
|
|
|
1125
|
inputId = puObj.getInputId()
|
|
1198
|
inputId = puObj.getInputId()
|
|
1126
|
inputPuObj = projectObj.getProcUnitObj(inputId)
|
|
1199
|
inputPuObj = projectObj.getProcUnitObj(inputId)
|
|
1127
|
|
|
1200
|
|
|
1128
|
if inputPuObj.datatype == 'Voltage' or inputPuObj.datatype == 'USRP':
|
|
1201
|
if inputPuObj.datatype == 'Voltage' or inputPuObj.datatype == 'USRP':
|
|
1129
|
|
|
1202
|
|
|
1130
|
try:
|
|
1203
|
value = str(self.specOpnFFTpoints.text())
|
|
1131
|
value = int(self.specOpnFFTpoints.text())
|
|
1204
|
|
|
1132
|
puObj.addParameter(name='nFFTPoints', value=value, format='int')
|
|
1205
|
if not isInt(value):
|
|
1133
|
except:
|
|
1206
|
self.console.append("Invalid value '%s' for '%s'" %(value, 'nFFTPoints'))
|
|
1134
|
self.console.clear()
|
|
|
|
|
1135
|
self.console.append("Please write the number of FFT")
|
|
|
|
|
1136
|
return 0
|
|
1207
|
return 0
|
|
1137
|
|
|
1208
|
|
|
1138
|
try:
|
|
1209
|
puObj.addParameter(name='nFFTPoints', value=value, format='int')
|
|
1139
|
value1 = int(self.specOpProfiles.text())
|
|
|
|
|
1140
|
puObj.addParameter(name='nProfiles', value=value1, format='int')
|
|
|
|
|
1141
|
except:
|
|
|
|
|
1142
|
self.console.append("Please Write the number of Profiles")
|
|
|
|
|
1143
|
|
|
|
|
|
1144
|
try:
|
|
|
|
|
1145
|
value2 = int(self.specOpippFactor.text())
|
|
|
|
|
1146
|
puObj.addParameter(name='ippFactor' , value=value2 , format='int')
|
|
|
|
|
1147
|
except:
|
|
|
|
|
1148
|
self.console.append("Please Write the Number of IppFactor")
|
|
|
|
|
1149
|
|
|
1210
|
|
|
1150
|
|
|
1211
|
value = str(self.specOpProfiles.text())
|
|
|
|
|
1212
|
if not isInt(value):
|
|
|
|
|
1213
|
self.console.append("Please write a value on Profiles field")
|
|
|
|
|
1214
|
else:
|
|
|
|
|
1215
|
puObj.addParameter(name='nProfiles', value=value, format='int')
|
|
|
|
|
1216
|
|
|
|
|
|
1217
|
value = str(self.specOpippFactor.text())
|
|
|
|
|
1218
|
if not isInt(value):
|
|
|
|
|
1219
|
self.console.append("Please write a value on IppFactor field")
|
|
|
|
|
1220
|
else:
|
|
|
|
|
1221
|
puObj.addParameter(name='ippFactor' , value=value , format='int')
|
|
|
|
|
1222
|
|
|
1151
|
if self.specOpCebCrossSpectra.isChecked():
|
|
1223
|
if self.specOpCebCrossSpectra.isChecked():
|
|
1152
|
name_parameter = 'pairsList'
|
|
1224
|
name_parameter = 'pairsList'
|
|
1153
|
format = 'pairslist'
|
|
1225
|
format = 'pairslist'
|
|
1154
|
value2 = self.specOppairsList.text()
|
|
1226
|
value = str(self.specOppairsList.text())
|
|
1155
|
|
|
1227
|
|
|
1156
|
if value2 == "":
|
|
1228
|
if value == "":
|
|
1157
|
print "Please fill the pairs list field"
|
|
1229
|
print "Please fill the pairs list field"
|
|
1158
|
return 0
|
|
1230
|
return 0
|
|
1159
|
|
|
1231
|
|
|
1160
|
puObj.addParameter(name=name_parameter, value=value2, format=format)
|
|
1232
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
1233
|
self.console.append("Invalid value '%s' for '%s'" %(value,name_parameter))
|
|
|
|
|
1234
|
return 0
|
|
1161
|
|
|
1235
|
|
|
1162
|
if self.specOpCebHeights.isChecked():
|
|
1236
|
if self.specOpCebHeights.isChecked():
|
|
1163
|
value = str(self.specOpHeights.text())
|
|
1237
|
value = str(self.specOpHeights.text())
|
|
1164
|
|
|
1238
|
|
|
1165
|
if value == "":
|
|
1239
|
if value == "":
|
|
1166
|
print "Please fill height range"
|
|
1240
|
self.console.append("Empty value for '%s'" %(value, "Height range"))
|
|
1167
|
return 0
|
|
1241
|
return 0
|
|
1168
|
|
|
1242
|
|
|
1169
|
valueList = value.split(',')
|
|
1243
|
valueList = value.split(',')
|
|
@@
-1171,6
+1245,10
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1171
|
value0 = valueList[0]
|
|
1245
|
value0 = valueList[0]
|
|
1172
|
value1 = valueList[1]
|
|
1246
|
value1 = valueList[1]
|
|
1173
|
|
|
1247
|
|
|
|
|
|
1248
|
if not isFloat(value0) or not isFloat(value1):
|
|
|
|
|
1249
|
self.console.append("Invalid value '%s' for '%s'" %(value, "Height range"))
|
|
|
|
|
1250
|
return 0
|
|
|
|
|
1251
|
|
|
1174
|
if self.specOpComHeights.currentIndex() == 0:
|
|
1252
|
if self.specOpComHeights.currentIndex() == 0:
|
|
1175
|
name_operation = 'selectHeights'
|
|
1253
|
name_operation = 'selectHeights'
|
|
1176
|
name_parameter1 = 'minHei'
|
|
1254
|
name_parameter1 = 'minHei'
|
|
@@
-1179,43
+1257,55
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1179
|
name_operation = 'selectHeightsByIndex'
|
|
1257
|
name_operation = 'selectHeightsByIndex'
|
|
1180
|
name_parameter1 = 'minIndex'
|
|
1258
|
name_parameter1 = 'minIndex'
|
|
1181
|
name_parameter2 = 'maxIndex'
|
|
1259
|
name_parameter2 = 'maxIndex'
|
|
|
|
|
1260
|
|
|
1182
|
opObj = puObj.addOperation(name=name_operation)
|
|
1261
|
opObj = puObj.addOperation(name=name_operation)
|
|
1183
|
opObj.addParameter(name=name_parameter1, value=value0, format=format)
|
|
1262
|
opObj.addParameter(name=name_parameter1, value=value0, format=format)
|
|
1184
|
opObj.addParameter(name=name_parameter2, value=value1, format=format)
|
|
1263
|
opObj.addParameter(name=name_parameter2, value=value1, format=format)
|
|
1185
|
|
|
1264
|
|
|
1186
|
if self.specOpCebChannel.isChecked():
|
|
1265
|
if self.specOpCebChannel.isChecked():
|
|
1187
|
value = str(self.specOpChannel.text())
|
|
|
|
|
1188
|
|
|
1266
|
|
|
1189
|
if value == "":
|
|
|
|
|
1190
|
print "Please fill channel list"
|
|
|
|
|
1191
|
return 0
|
|
|
|
|
1192
|
|
|
|
|
|
1193
|
format = 'intlist'
|
|
|
|
|
1194
|
if self.specOpComChannel.currentIndex() == 0:
|
|
1267
|
if self.specOpComChannel.currentIndex() == 0:
|
|
1195
|
name_operation = "selectChannels"
|
|
1268
|
name_operation = "selectChannels"
|
|
1196
|
name_parameter = 'channelList'
|
|
1269
|
name_parameter = 'channelList'
|
|
1197
|
else:
|
|
1270
|
else:
|
|
1198
|
name_operation = "selectChannelsByIndex"
|
|
1271
|
name_operation = "selectChannelsByIndex"
|
|
1199
|
name_parameter = 'channelIndexList'
|
|
1272
|
name_parameter = 'channelIndexList'
|
|
|
|
|
1273
|
|
|
|
|
|
1274
|
format = 'intlist'
|
|
|
|
|
1275
|
value = str(self.specOpChannel.text())
|
|
|
|
|
1276
|
|
|
|
|
|
1277
|
if value == "":
|
|
|
|
|
1278
|
print "Please fill channel list"
|
|
|
|
|
1279
|
return 0
|
|
|
|
|
1280
|
|
|
|
|
|
1281
|
if not isList(value):
|
|
|
|
|
1282
|
self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter))
|
|
|
|
|
1283
|
return 0
|
|
1200
|
|
|
1284
|
|
|
1201
|
opObj = puObj.addOperation(name=name_operation)
|
|
1285
|
opObj = puObj.addOperation(name=name_operation)
|
|
1202
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
1286
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
1203
|
|
|
1287
|
|
|
1204
|
if self.specOpCebIncoherent.isChecked():
|
|
1288
|
if self.specOpCebIncoherent.isChecked():
|
|
1205
|
value = str(self.specOpIncoherent.text())
|
|
|
|
|
1206
|
|
|
1289
|
|
|
1207
|
if value == "":
|
|
|
|
|
1208
|
print "Please fill Incoherent integration value"
|
|
|
|
|
1209
|
return 0
|
|
|
|
|
1210
|
|
|
|
|
|
1211
|
name_operation = 'IncohInt'
|
|
1290
|
name_operation = 'IncohInt'
|
|
1212
|
optype = 'other'
|
|
1291
|
optype = 'other'
|
|
|
|
|
1292
|
|
|
1213
|
if self.specOpCobIncInt.currentIndex() == 0:
|
|
1293
|
if self.specOpCobIncInt.currentIndex() == 0:
|
|
1214
|
name_parameter = 'timeInterval'
|
|
1294
|
name_parameter = 'timeInterval'
|
|
1215
|
format = 'float'
|
|
1295
|
format = 'float'
|
|
1216
|
else:
|
|
1296
|
else:
|
|
1217
|
name_parameter = 'n'
|
|
1297
|
name_parameter = 'n'
|
|
1218
|
format = 'float'
|
|
1298
|
format = 'float'
|
|
|
|
|
1299
|
|
|
|
|
|
1300
|
value = str(self.specOpIncoherent.text())
|
|
|
|
|
1301
|
|
|
|
|
|
1302
|
if value == "":
|
|
|
|
|
1303
|
print "Please fill Incoherent integration value"
|
|
|
|
|
1304
|
return 0
|
|
|
|
|
1305
|
|
|
|
|
|
1306
|
if not isFloat(value):
|
|
|
|
|
1307
|
self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter))
|
|
|
|
|
1308
|
return 0
|
|
1219
|
|
|
1309
|
|
|
1220
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
1310
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
1221
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
1311
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
@@
-1237,7
+1327,7
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1237
|
|
|
1327
|
|
|
1238
|
|
|
1328
|
|
|
1239
|
if self.specOpCebgetNoise.isChecked():
|
|
1329
|
if self.specOpCebgetNoise.isChecked():
|
|
1240
|
value = self.specOpgetNoise.text()
|
|
1330
|
value = str(self.specOpgetNoise.text())
|
|
1241
|
valueList = value.split(',')
|
|
1331
|
valueList = value.split(',')
|
|
1242
|
format = 'float'
|
|
1332
|
format = 'float'
|
|
1243
|
name_operation = "getNoise"
|
|
1333
|
name_operation = "getNoise"
|
|
@@
-1332,7
+1422,12
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1332
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1422
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1333
|
|
|
1423
|
|
|
1334
|
if not channelList == '':
|
|
1424
|
if not channelList == '':
|
|
1335
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1425
|
|
|
|
|
|
1426
|
if not isList(channelList):
|
|
|
|
|
1427
|
self.console.append("Invalid channelList")
|
|
|
|
|
1428
|
return 0
|
|
|
|
|
1429
|
|
|
|
|
|
1430
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1336
|
|
|
1431
|
|
|
1337
|
if not vel_range == '':
|
|
1432
|
if not vel_range == '':
|
|
1338
|
xvalueList = vel_range.split(',')
|
|
1433
|
xvalueList = vel_range.split(',')
|
|
@@
-1480,6
+1575,9
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1480
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1575
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1481
|
|
|
1576
|
|
|
1482
|
if not channelList == '':
|
|
1577
|
if not channelList == '':
|
|
|
|
|
1578
|
if not isList(channelList):
|
|
|
|
|
1579
|
self.console.append("Invalid channelList")
|
|
|
|
|
1580
|
return 0
|
|
1483
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1581
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1484
|
|
|
1582
|
|
|
1485
|
if not trange == '':
|
|
1583
|
if not trange == '':
|
|
@@
-1635,6
+1733,10
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1635
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1733
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1636
|
|
|
1734
|
|
|
1637
|
if not channelList == '':
|
|
1735
|
if not channelList == '':
|
|
|
|
|
1736
|
if not isList(channelList):
|
|
|
|
|
1737
|
self.console.append("Invalid channelList")
|
|
|
|
|
1738
|
return 0
|
|
|
|
|
1739
|
|
|
1638
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1740
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1639
|
|
|
1741
|
|
|
1640
|
if not db_range == '':
|
|
1742
|
if not db_range == '':
|
|
@@
-1684,6
+1786,9
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1684
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1786
|
opObj.addParameter(name='id', value=opObj.id, format='int')
|
|
1685
|
|
|
1787
|
|
|
1686
|
if not channelList == '':
|
|
1788
|
if not channelList == '':
|
|
|
|
|
1789
|
if not isList(channelList):
|
|
|
|
|
1790
|
self.console.append("Invalid channelList")
|
|
|
|
|
1791
|
return 0
|
|
1687
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1792
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
1688
|
|
|
1793
|
|
|
1689
|
# if not timerange == '':
|
|
1794
|
# if not timerange == '':
|
|
@@
-1759,11
+1864,10
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1759
|
try:
|
|
1864
|
try:
|
|
1760
|
self.refreshPUProperties(puObj)
|
|
1865
|
self.refreshPUProperties(puObj)
|
|
1761
|
except:
|
|
1866
|
except:
|
|
1762
|
self.console.append("Check input parameters")
|
|
1867
|
self.console.append("An error reading input parameters was found ... Check them!")
|
|
1763
|
return 0
|
|
1868
|
return 0
|
|
1764
|
|
|
1869
|
|
|
1765
|
self.console.append("If you want to save your project")
|
|
1870
|
self.console.append("Save your project and press Play button to start signal processing")
|
|
1766
|
self.console.append("click on your project name in the Tree Project Explorer")
|
|
|
|
|
1767
|
|
|
1871
|
|
|
1768
|
self.actionSaveToolbar.setEnabled(True)
|
|
1872
|
self.actionSaveToolbar.setEnabled(True)
|
|
1769
|
self.actionStarToolbar.setEnabled(True)
|
|
1873
|
self.actionStarToolbar.setEnabled(True)
|
|
@@
-1923,77
+2027,104
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
1923
|
self.actionSaveToolbar.setEnabled(False)
|
|
2027
|
self.actionSaveToolbar.setEnabled(False)
|
|
1924
|
self.actionStarToolbar.setEnabled(False)
|
|
2028
|
self.actionStarToolbar.setEnabled(False)
|
|
1925
|
|
|
2029
|
|
|
|
|
|
2030
|
self.console.clear()
|
|
|
|
|
2031
|
self.console.append("Checking input parameters ...")
|
|
|
|
|
2032
|
|
|
1926
|
puObj = self.getSelectedItemObj()
|
|
2033
|
puObj = self.getSelectedItemObj()
|
|
1927
|
puObj.removeOperations()
|
|
2034
|
puObj.removeOperations()
|
|
1928
|
|
|
2035
|
|
|
1929
|
if self.specHeisOpCebIncoherent.isChecked():
|
|
2036
|
if self.specHeisOpCebIncoherent.isChecked():
|
|
1930
|
value = self.specHeisOpIncoherent.text()
|
|
2037
|
value = str(self.specHeisOpIncoherent.text())
|
|
1931
|
name_operation = 'IncohInt4SpectraHeis'
|
|
2038
|
name_operation = 'IncohInt4SpectraHeis'
|
|
1932
|
optype = 'other'
|
|
2039
|
optype = 'other'
|
|
|
|
|
2040
|
|
|
|
|
|
2041
|
name_parameter = 'timeInterval'
|
|
|
|
|
2042
|
format = 'float'
|
|
|
|
|
2043
|
|
|
1933
|
if self.specOpCobIncInt.currentIndex() == 0:
|
|
2044
|
if self.specOpCobIncInt.currentIndex() == 0:
|
|
1934
|
name_parameter = 'timeInterval'
|
|
2045
|
name_parameter = 'timeInterval'
|
|
1935
|
format = 'float'
|
|
2046
|
format = 'float'
|
|
|
|
|
2047
|
|
|
|
|
|
2048
|
if not isFloat(value):
|
|
|
|
|
2049
|
self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter))
|
|
|
|
|
2050
|
return 0
|
|
|
|
|
2051
|
|
|
1936
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
2052
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
1937
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
2053
|
|
|
|
|
|
2054
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
2055
|
self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter))
|
|
|
|
|
2056
|
return 0
|
|
1938
|
|
|
2057
|
|
|
1939
|
# ---- Spectra Plot-----
|
|
2058
|
# ---- Spectra Plot-----
|
|
1940
|
if self.specHeisGraphCebSpectraplot.isChecked():
|
|
2059
|
if self.specHeisGraphCebSpectraplot.isChecked():
|
|
1941
|
name_operation = 'SpectraHeisScope'
|
|
2060
|
name_operation = 'SpectraHeisScope'
|
|
1942
|
optype = 'other'
|
|
2061
|
optype = 'other'
|
|
1943
|
name_parameter = 'type'
|
|
|
|
|
1944
|
value = 'SpectraHeisScope'
|
|
|
|
|
1945
|
format = 'str'
|
|
|
|
|
1946
|
if self.idImagspectraHeis == 0:
|
|
|
|
|
1947
|
self.idImagspectraHeis = 800
|
|
|
|
|
1948
|
else:
|
|
|
|
|
1949
|
self.idImagspectraHeis = self.idImagspectraHeis + 1
|
|
|
|
|
1950
|
name_parameter1 = 'id'
|
|
|
|
|
1951
|
value1 = int(self.idImagspectraHeis)
|
|
|
|
|
1952
|
format1 = 'int'
|
|
|
|
|
1953
|
|
|
2062
|
|
|
1954
|
format = 'str'
|
|
2063
|
name_parameter = 'id'
|
|
|
|
|
2064
|
format = 'int'
|
|
1955
|
|
|
2065
|
|
|
1956
|
channelList = self.specHeisGgraphChannelList.text()
|
|
2066
|
channelList = str(self.specHeisGgraphChannelList.text())
|
|
1957
|
xvalue = self.specHeisGgraphXminXmax.text()
|
|
2067
|
xvalue = str(self.specHeisGgraphXminXmax.text())
|
|
1958
|
yvalue = self.specHeisGgraphYminYmax.text()
|
|
2068
|
yvalue = str(self.specHeisGgraphYminYmax.text())
|
|
|
|
|
2069
|
|
|
1959
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
2070
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
1960
|
# opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
2071
|
value = opObj.id
|
|
1961
|
opObj.addParameter(name=name_parameter1, value=value1, format=format1)
|
|
2072
|
|
|
|
|
|
2073
|
if not opObj.addParameter(name=name_parameter, value=value, format=format):
|
|
|
|
|
2074
|
self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter))
|
|
|
|
|
2075
|
return 0
|
|
1962
|
|
|
2076
|
|
|
1963
|
if not channelList == '':
|
|
2077
|
if not channelList == '':
|
|
1964
|
name_parameter = 'channelList'
|
|
2078
|
name_parameter = 'channelList'
|
|
1965
|
format = 'intlist'
|
|
2079
|
format = 'intlist'
|
|
|
|
|
2080
|
|
|
|
|
|
2081
|
if not isList(channelList):
|
|
|
|
|
2082
|
self.console.append("Invalid value '%s' for '%s'" %(channelList, name_parameter))
|
|
|
|
|
2083
|
return 0
|
|
|
|
|
2084
|
|
|
1966
|
opObj.addParameter(name=name_parameter, value=channelList, format=format)
|
|
2085
|
opObj.addParameter(name=name_parameter, value=channelList, format=format)
|
|
1967
|
|
|
2086
|
|
|
1968
|
if not xvalue == '':
|
|
2087
|
if not xvalue == '':
|
|
1969
|
xvalueList = xvalue.split(',')
|
|
2088
|
xvalueList = xvalue.split(',')
|
|
1970
|
try:
|
|
2089
|
|
|
1971
|
value1 = float(xvalueList[0])
|
|
2090
|
if len(xvalueList) != 2:
|
|
1972
|
value2 = float(xvalueList[1])
|
|
2091
|
self.console.append("Invalid value '%s' for '%s'" %(xvalue, "xrange"))
|
|
1973
|
except:
|
|
2092
|
return 0
|
|
1974
|
self.console.clear()
|
|
2093
|
|
|
1975
|
self.console.append("Please Write corrects parameter xmin-xmax")
|
|
2094
|
value1 = xvalueList[0]
|
|
1976
|
return 0
|
|
2095
|
value2 = xvalueList[1]
|
|
1977
|
name1 = 'xmin'
|
|
2096
|
|
|
1978
|
name2 = 'xmax'
|
|
2097
|
if not isFloat(value1) or not isFloat(value2):
|
|
1979
|
format = 'float'
|
|
2098
|
self.console.append("Invalid value '%s' for '%s'" %(xvalue, "xrange"))
|
|
1980
|
opObj.addParameter(name=name1, value=value1, format=format)
|
|
2099
|
return 0
|
|
1981
|
opObj.addParameter(name=name2, value=value2, format=format)
|
|
2100
|
|
|
|
|
|
2101
|
name1 = 'xmin'
|
|
|
|
|
2102
|
name2 = 'xmax'
|
|
|
|
|
2103
|
format = 'float'
|
|
|
|
|
2104
|
|
|
|
|
|
2105
|
opObj.addParameter(name=name1, value=value1, format=format)
|
|
|
|
|
2106
|
opObj.addParameter(name=name2, value=value2, format=format)
|
|
|
|
|
2107
|
|
|
1982
|
#------specHeisGgraphYmin-Ymax---
|
|
2108
|
#------specHeisGgraphYmin-Ymax---
|
|
1983
|
if not yvalue == '':
|
|
2109
|
if not yvalue == '':
|
|
1984
|
yvalueList = yvalue.split(",")
|
|
2110
|
yvalueList = yvalue.split(",")
|
|
1985
|
try:
|
|
2111
|
|
|
1986
|
value1 = float(yvalueList[0])
|
|
2112
|
if len(yvalueList) != 2:
|
|
1987
|
value2 = float(yvalueList[1])
|
|
2113
|
self.console.append("Invalid value '%s' for '%s'" %(xvalue, "xrange"))
|
|
1988
|
except:
|
|
2114
|
return 0
|
|
1989
|
self.console.clear()
|
|
2115
|
|
|
1990
|
self.console.append("Please Write corrects parameter Ymix-Ymax")
|
|
2116
|
value1 = yvalueList[0]
|
|
1991
|
return 0
|
|
2117
|
value2 = yvalueList[1]
|
|
1992
|
name1 = 'ymin'
|
|
2118
|
|
|
1993
|
name2 = 'ymax'
|
|
2119
|
if not isFloat(value1) or not isFloat(value2):
|
|
1994
|
format = 'float'
|
|
2120
|
self.console.append("Invalid value '%s' for '%s'" %(yvalue, "yrange"))
|
|
1995
|
opObj.addParameter(name=name1, value=value1, format=format)
|
|
2121
|
return 0
|
|
1996
|
opObj.addParameter(name=name2, value=value2, format=format)
|
|
2122
|
|
|
|
|
|
2123
|
name1 = 'ymin'
|
|
|
|
|
2124
|
name2 = 'ymax'
|
|
|
|
|
2125
|
format = 'float'
|
|
|
|
|
2126
|
opObj.addParameter(name=name1, value=value1, format=format)
|
|
|
|
|
2127
|
opObj.addParameter(name=name2, value=value2, format=format)
|
|
1997
|
|
|
2128
|
|
|
1998
|
if self.specHeisGraphSaveSpectra.isChecked():
|
|
2129
|
if self.specHeisGraphSaveSpectra.isChecked():
|
|
1999
|
checkPath = True
|
|
2130
|
checkPath = True
|
|
@@
-2001,8
+2132,8
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
2001
|
name_parameter2 = 'figpath'
|
|
2132
|
name_parameter2 = 'figpath'
|
|
2002
|
name_parameter3 = 'figfile'
|
|
2133
|
name_parameter3 = 'figfile'
|
|
2003
|
value1 = '1'
|
|
2134
|
value1 = '1'
|
|
2004
|
value2 = self.specHeisGraphPath.text()
|
|
2135
|
value2 = str(self.specHeisGraphPath.text())
|
|
2005
|
value3 = self.specHeisGraphPrefix.text()
|
|
2136
|
value3 = str(self.specHeisGraphPrefix.text())
|
|
2006
|
format1 = 'bool'
|
|
2137
|
format1 = 'bool'
|
|
2007
|
format2 = 'str'
|
|
2138
|
format2 = 'str'
|
|
2008
|
opObj.addParameter(name=name_parameter1, value=value1 , format=format1)
|
|
2139
|
opObj.addParameter(name=name_parameter1, value=value1 , format=format1)
|
|
@@
-2014,7
+2145,7
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
2014
|
self.console.clear()
|
|
2145
|
self.console.clear()
|
|
2015
|
self.console.append("Please Write prefix")
|
|
2146
|
self.console.append("Please Write prefix")
|
|
2016
|
return 0
|
|
2147
|
return 0
|
|
2017
|
opObj.addParameter(name='figfile', value=self.specHeisGraphPrefix.text(), format='str')
|
|
2148
|
opObj.addParameter(name='figfile', value=str(self.specHeisGraphPrefix.text()), format='str')
|
|
2018
|
|
|
2149
|
|
|
2019
|
# opObj.addParameter(name=name_parameter3, value=value3, format=format2)
|
|
2150
|
# opObj.addParameter(name=name_parameter3, value=value3, format=format2)
|
|
2020
|
# opObj.addParameter(name='wr_period', value='5',format='int')
|
|
2151
|
# opObj.addParameter(name='wr_period', value='5',format='int')
|
|
@@
-2027,29
+2158,18
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
2027
|
if self.specHeisGraphCebRTIplot.isChecked():
|
|
2158
|
if self.specHeisGraphCebRTIplot.isChecked():
|
|
2028
|
name_operation = 'RTIfromSpectraHeis'
|
|
2159
|
name_operation = 'RTIfromSpectraHeis'
|
|
2029
|
optype = 'other'
|
|
2160
|
optype = 'other'
|
|
2030
|
name_parameter = 'type'
|
|
|
|
|
2031
|
value = 'RTIfromSpectraHeis'
|
|
|
|
|
2032
|
format = 'str'
|
|
|
|
|
2033
|
|
|
|
|
|
2034
|
if self.idImagrtiHeis == 0:
|
|
|
|
|
2035
|
self.idImagrtiHeis = 900
|
|
|
|
|
2036
|
else:
|
|
|
|
|
2037
|
self.idImagrtiHeis = self.idImagrtiHeis + 1
|
|
|
|
|
2038
|
|
|
2161
|
|
|
2039
|
name_parameter1 = 'id'
|
|
2162
|
name_parameter = 'id'
|
|
2040
|
value1 = int(self.idImagrtiHeis)
|
|
2163
|
format = 'int'
|
|
2041
|
format1 = 'int'
|
|
|
|
|
2042
|
|
|
|
|
|
2043
|
format = 'str'
|
|
|
|
|
2044
|
|
|
2164
|
|
|
2045
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
2165
|
opObj = puObj.addOperation(name=name_operation, optype=optype)
|
|
2046
|
# opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
2166
|
value = opObj.id
|
|
2047
|
opObj.addParameter(name=name_parameter1, value=value1, format=format1)
|
|
2167
|
opObj.addParameter(name=name_parameter, value=value, format=format)
|
|
2048
|
|
|
2168
|
|
|
2049
|
channelList = self.specHeisGgraphChannelList.text()
|
|
2169
|
channelList = str(self.specHeisGgraphChannelList.text())
|
|
2050
|
xvalue = self.specHeisGgraphTminTmax.text()
|
|
2170
|
xvalue = str(self.specHeisGgraphTminTmax.text())
|
|
2051
|
yvalue = self.specHeisGgraphYminYmax.text()
|
|
2171
|
yvalue = str(self.specHeisGgraphYminYmax.text())
|
|
2052
|
timerange = self.specHeisGgraphTimeRange.text()
|
|
2172
|
timerange = str(self.specHeisGgraphTimeRange.text())
|
|
2053
|
|
|
2173
|
|
|
2054
|
if not channelList == '':
|
|
2174
|
if not channelList == '':
|
|
2055
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
2175
|
opObj.addParameter(name='channelList', value=channelList, format='intlist')
|
|
@@
-2088,8
+2208,8
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
2088
|
if self.specHeisGraphSaveRTIplot.isChecked():
|
|
2208
|
if self.specHeisGraphSaveRTIplot.isChecked():
|
|
2089
|
checkPath = True
|
|
2209
|
checkPath = True
|
|
2090
|
opObj.addParameter(name='save', value='1', format='bool')
|
|
2210
|
opObj.addParameter(name='save', value='1', format='bool')
|
|
2091
|
opObj.addParameter(name='figpath', value=self.specHeisGraphPath.text(), format='str')
|
|
2211
|
opObj.addParameter(name='figpath', value=str(self.specHeisGraphPath.text()), format='str')
|
|
2092
|
value = self.specHeisGraphPrefix.text()
|
|
2212
|
value = str(self.specHeisGraphPrefix.text())
|
|
2093
|
if not value == "":
|
|
2213
|
if not value == "":
|
|
2094
|
try:
|
|
2214
|
try:
|
|
2095
|
value = str(self.specHeisGraphPrefix.text())
|
|
2215
|
value = str(self.specHeisGraphPrefix.text())
|
|
@@
-2107,7
+2227,7
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
2107
|
|
|
2227
|
|
|
2108
|
localfolder = None
|
|
2228
|
localfolder = None
|
|
2109
|
if checkPath:
|
|
2229
|
if checkPath:
|
|
2110
|
localfolder = str(self.specGraphPath.text())
|
|
2230
|
localfolder = str(self.specHeisGraphPath.text())
|
|
2111
|
if localfolder == '':
|
|
2231
|
if localfolder == '':
|
|
2112
|
self.console.clear()
|
|
2232
|
self.console.clear()
|
|
2113
|
self.console.append("Graphic path should be defined")
|
|
2233
|
self.console.append("Graphic path should be defined")
|
|
@@
-2140,10
+2260,10
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
2140
|
try:
|
|
2260
|
try:
|
|
2141
|
self.refreshPUProperties(puObj)
|
|
2261
|
self.refreshPUProperties(puObj)
|
|
2142
|
except:
|
|
2262
|
except:
|
|
2143
|
self.console.append("Check input parameters")
|
|
2263
|
self.console.append("An error reading input parameters was found ... Check them!")
|
|
2144
|
return 0
|
|
2264
|
return 0
|
|
2145
|
|
|
2265
|
|
|
2146
|
self.console.append("Click on save icon ff you want to save your project")
|
|
2266
|
self.console.append("Save your project and press Play button to start signal processing")
|
|
2147
|
|
|
2267
|
|
|
2148
|
self.actionSaveToolbar.setEnabled(True)
|
|
2268
|
self.actionSaveToolbar.setEnabled(True)
|
|
2149
|
self.actionStarToolbar.setEnabled(True)
|
|
2269
|
self.actionStarToolbar.setEnabled(True)
|
|
@@
-2390,7
+2510,7
class BasicWindow(QMainWindow, Ui_BasicWindow):
|
|
2390
|
ippKm = float(value)
|
|
2510
|
ippKm = float(value)
|
|
2391
|
except:
|
|
2511
|
except:
|
|
2392
|
if datatype=="USRP":
|
|
2512
|
if datatype=="USRP":
|
|
2393
|
outputstr = 'IPP value (%s) must be a float number' % str(self.proIPPKm.text())
|
|
2513
|
outputstr = 'IPP value "%s" must be a float number' % str(self.proIPPKm.text())
|
|
2394
|
self.console.append(outputstr)
|
|
2514
|
self.console.append(outputstr)
|
|
2395
|
parms_ok = False
|
|
2515
|
parms_ok = False
|
|
2396
|
|
|
2516
|
|