@@ -2063,27 +2063,29 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||
|
2063 | 2063 | if not opObj.addParameter(name=name_parameter, value=value, format=format): |
|
2064 | 2064 | self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter)) |
|
2065 | 2065 | return 0 |
|
2066 | ||
|
2067 | channelList = str(self.specHeisGgraphChannelList.text()) | |
|
2068 | freq_range = str(self.specHeisGgraphXminXmax.text()) | |
|
2069 | power_range = str(self.specHeisGgraphYminYmax.text()) | |
|
2070 | time_range = str(self.specHeisGgraphTminTmax.text()) | |
|
2071 | timerange = str(self.specHeisGgraphTimeRange.text()) | |
|
2066 | 2072 | |
|
2067 | 2073 | # ---- Spectra Plot----- |
|
2068 |
if self.specHeisGraphCebSpectraplot.isChecked(): |
|
|
2074 | if self.specHeisGraphCebSpectraplot.isChecked(): | |
|
2075 | ||
|
2069 | 2076 | name_operation = 'SpectraHeisScope' |
|
2070 | 2077 | optype = 'other' |
|
2078 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
|
2071 | 2079 | |
|
2072 | 2080 | name_parameter = 'id' |
|
2073 | 2081 | format = 'int' |
|
2074 | ||
|
2075 | channelList = str(self.specHeisGgraphChannelList.text()) | |
|
2076 | xvalue = str(self.specHeisGgraphXminXmax.text()) | |
|
2077 | yvalue = str(self.specHeisGgraphYminYmax.text()) | |
|
2078 | ||
|
2079 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
|
2080 | 2082 | value = opObj.id |
|
2081 | 2083 | |
|
2082 | 2084 | if not opObj.addParameter(name=name_parameter, value=value, format=format): |
|
2083 | 2085 | self.console.append("Invalid value '%s' for '%s'" %(value, name_parameter)) |
|
2084 | 2086 | return 0 |
|
2085 | 2087 | |
|
2086 | if not channelList == '': | |
|
2088 | if not (channelList == ''): | |
|
2087 | 2089 | name_parameter = 'channelList' |
|
2088 | 2090 | format = 'intlist' |
|
2089 | 2091 | |
@@ -2093,18 +2095,18 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||
|
2093 | 2095 | |
|
2094 | 2096 | opObj.addParameter(name=name_parameter, value=channelList, format=format) |
|
2095 | 2097 | |
|
2096 |
if not |
|
|
2097 |
xvalueList = |
|
|
2098 | if not freq_range == '': | |
|
2099 | xvalueList = freq_range.split(',') | |
|
2098 | 2100 | |
|
2099 | 2101 | if len(xvalueList) != 2: |
|
2100 |
self.console.append("Invalid value '%s' for '%s'" %( |
|
|
2102 | self.console.append("Invalid value '%s' for '%s'" %(freq_range, "xrange")) | |
|
2101 | 2103 | return 0 |
|
2102 | 2104 | |
|
2103 | 2105 | value1 = xvalueList[0] |
|
2104 | 2106 | value2 = xvalueList[1] |
|
2105 | 2107 | |
|
2106 | 2108 | if not isFloat(value1) or not isFloat(value2): |
|
2107 |
self.console.append("Invalid value '%s' for '%s'" %( |
|
|
2109 | self.console.append("Invalid value '%s' for '%s'" %(freq_range, "xrange")) | |
|
2108 | 2110 | return 0 |
|
2109 | 2111 | |
|
2110 | 2112 | name1 = 'xmin' |
@@ -2115,18 +2117,18 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||
|
2115 | 2117 | opObj.addParameter(name=name2, value=value2, format=format) |
|
2116 | 2118 | |
|
2117 | 2119 | #------specHeisGgraphYmin-Ymax--- |
|
2118 |
if not |
|
|
2119 |
yvalueList = |
|
|
2120 | if not power_range == '': | |
|
2121 | yvalueList = power_range.split(",") | |
|
2120 | 2122 | |
|
2121 | 2123 | if len(yvalueList) != 2: |
|
2122 |
self.console.append("Invalid value '%s' for '%s'" %( |
|
|
2124 | self.console.append("Invalid value '%s' for '%s'" %(power_range, "xrange")) | |
|
2123 | 2125 | return 0 |
|
2124 | 2126 | |
|
2125 | 2127 | value1 = yvalueList[0] |
|
2126 | 2128 | value2 = yvalueList[1] |
|
2127 | 2129 | |
|
2128 | 2130 | if not isFloat(value1) or not isFloat(value2): |
|
2129 |
self.console.append("Invalid value '%s' for '%s'" %( |
|
|
2131 | self.console.append("Invalid value '%s' for '%s'" %(power_range, "yrange")) | |
|
2130 | 2132 | return 0 |
|
2131 | 2133 | |
|
2132 | 2134 | name1 = 'ymin' |
@@ -2174,17 +2176,12 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||
|
2174 | 2176 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
2175 | 2177 | value = opObj.id |
|
2176 | 2178 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
2177 | ||
|
2178 | channelList = str(self.specHeisGgraphChannelList.text()) | |
|
2179 | xvalue = str(self.specHeisGgraphTminTmax.text()) | |
|
2180 | yvalue = str(self.specHeisGgraphYminYmax.text()) | |
|
2181 | timerange = str(self.specHeisGgraphTimeRange.text()) | |
|
2182 | 2179 | |
|
2183 | 2180 | if not channelList == '': |
|
2184 | 2181 | opObj.addParameter(name='channelList', value=channelList, format='intlist') |
|
2185 | 2182 | |
|
2186 |
if not |
|
|
2187 |
xvalueList = |
|
|
2183 | if not time_range == '': | |
|
2184 | xvalueList = time_range.split(',') | |
|
2188 | 2185 | try: |
|
2189 | 2186 | value = float(xvalueList[0]) |
|
2190 | 2187 | value = float(xvalueList[1]) |
@@ -2203,13 +2200,14 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||
|
2203 | 2200 | opObj.addParameter(name='timerange', value=timerange, format=format) |
|
2204 | 2201 | |
|
2205 | 2202 | |
|
2206 |
if not |
|
|
2207 |
yvalueList = |
|
|
2203 | if not power_range == '': | |
|
2204 | yvalueList = power_range.split(",") | |
|
2208 | 2205 | try: |
|
2209 | 2206 | value = float(yvalueList[0]) |
|
2210 | 2207 | value = float(yvalueList[1]) |
|
2211 | 2208 | except: |
|
2212 |
|
|
|
2209 | return 0 | |
|
2210 | ||
|
2213 | 2211 | format = 'float' |
|
2214 | 2212 | opObj.addParameter(name='ymin', value=yvalueList[0], format=format) |
|
2215 | 2213 | opObj.addParameter(name='ymax', value=yvalueList[1], format=format) |
@@ -5531,6 +5529,15 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||
|
5531 | 5529 | |
|
5532 | 5530 | self.specGraphPrefix.setToolTip('Example: EXPERIMENT_NAME') |
|
5533 | 5531 | |
|
5532 | ||
|
5533 | self.specHeisOpIncoherent.setToolTip('Example: 10') | |
|
5534 | ||
|
5535 | self.specHeisGgraphChannelList.setToolTip('Example: 0,2,3') | |
|
5536 | self.specHeisGgraphXminXmax.setToolTip('Example (Hz): -1000, 1000') | |
|
5537 | self.specHeisGgraphYminYmax.setToolTip('Example (dB): 5, 35') | |
|
5538 | self.specHeisGgraphTminTmax.setToolTip('Example (hours): 0, 24') | |
|
5539 | self.specHeisGgraphTimeRange.setToolTip('Example (hours): 8') | |
|
5540 | ||
|
5534 | 5541 | self.labelSet.show() |
|
5535 | 5542 | self.proSet.show() |
|
5536 | 5543 |
@@ -213,18 +213,18 class Ui_SpectraHeisTab(object): | |||
|
213 | 213 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabopSpectraHeis), _translate("MainWindow", "Operation", None)) |
|
214 | 214 | self.label_54.setText(_translate("MainWindow", "Prefix", None)) |
|
215 | 215 | self.specHeisGraphToolPath.setText(_translate("MainWindow", "...", None)) |
|
216 |
self.label_62.setText(_translate("MainWindow", " |
|
|
217 |
self.label_63.setText(_translate("MainWindow", "T |
|
|
218 |
self.label_64.setText(_translate("MainWindow", "Time |
|
|
216 | self.label_62.setText(_translate("MainWindow", "Intensity range (dB)", None)) | |
|
217 | self.label_63.setText(_translate("MainWindow", "Time range (hours):", None)) | |
|
218 | self.label_64.setText(_translate("MainWindow", "Time interval:", None)) | |
|
219 | 219 | self.label_65.setText(_translate("MainWindow", "Wr Period", None)) |
|
220 | 220 | self.label_60.setText(_translate("MainWindow", "Channel List:", None)) |
|
221 |
self.label_61.setText(_translate("MainWindow", " |
|
|
221 | self.label_61.setText(_translate("MainWindow", "Frequency range", None)) | |
|
222 | 222 | self.label_56.setText(_translate("MainWindow", "Save", None)) |
|
223 | 223 | self.label_57.setText(_translate("MainWindow", "ftp", None)) |
|
224 | 224 | self.label_58.setText(_translate("MainWindow", "Spectra Plot", None)) |
|
225 | 225 | self.label_53.setText(_translate("MainWindow", "Path", None)) |
|
226 | 226 | self.label_55.setText(_translate("MainWindow", "Show", None)) |
|
227 |
self.label_59.setText(_translate("MainWindow", "RTI P |
|
|
227 | self.label_59.setText(_translate("MainWindow", "RTI Plot", None)) | |
|
228 | 228 | |
|
229 | 229 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabgraphSpectraHeis), _translate("MainWindow", "Graphics", None)) |
|
230 | 230 | self.label_67.setText(_translate("MainWindow", "Path:", None)) |
General Comments 0
You need to be logged in to leave comments.
Login now