本文整理汇总了Python中collector.Collector.get_actual_temperature方法的典型用法代码示例。如果您正苦于以下问题:Python Collector.get_actual_temperature方法的具体用法?Python Collector.get_actual_temperature怎么用?Python Collector.get_actual_temperature使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类collector.Collector
的用法示例。
在下文中一共展示了Collector.get_actual_temperature方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: MainWindow
# 需要导入模块: from collector import Collector [as 别名]
# 或者: from collector.Collector import get_actual_temperature [as 别名]
#.........这里部分代码省略.........
self.pcieWidget.framelength.valueChanged.connect(self.collector.setReflectogrammLength)
self.measuretimer = self.startTimer(1000)
#self.FOL2timer = self.startTimer(self.usbWidget.FOL2_period.value())
self.pcieWidget.framelength.valueChanged.connect(self.change_scan_time)
self.pcieWidget.framecount.valueChanged.connect(self.change_scan_time)
self.DILTScannerWidget.nsteps.valueChanged.connect(self.change_scan_time)
self.change_scan_time()
self.showMaximized()
self.plotsOnly = False
self.plotsFreezed = False
self.DILTScannerWidget.nsteps.valueChanged.connect(self.collector.setSpectraLength)
self.DIL_Tscanner.scanPositionChanged.connect(self.DILTScannerWidget.position.setNum)
self.scannerWidget.nsteps.valueChanged.connect(self.collector.setSpectraLength)
self.PFGITscanner.scanPositionChanged.connect(self.scannerWidget.position.setNum)
self.scannerWidget.dtChanged.connect(self.maximizer.set_dt)
self.scannerWidget.bottom.valueChanged.connect(
self.maximizer.set_bottom)
self.otherWidget.work.toggled.connect(self.on_work)
def on_work(self, val):
if not val:
self.status = "idle"
else:
self.status = "waiting"
def on_wait(self, data):
t, T1, T2 = self.collector.get_actual_temperature(2 * EXT_STAB_TIME)
targets = [self.state.settings["USB"]["T1set"],
self.state.settings["USB"]["T2set"]]
if logic.check_stability(t, [T1, T2], targets, EXT_STAB_TIME):
self.status = "searching"
self.state.update("PCIE", ("framecount", 200))
print "Searching"
middle = (self.state.settings["TimeScanner"]["top"] +
self.state.settings["TimeScanner"]["bottom"]) / 2
self.state.update("USB", ("PFGI_TscanAmp", middle))
setter = lambda x: self.state.update("USB", ("DIL_T", x))
dt = INT_STAB_RATE * SEARCH_STEP / 3
logic.init_search(SEARCH_BOT, SEARCH_TOP, SEARCH_STEP,
dt, setter)
def on_scan(self, pcie_dev_response):
self.collector.appendDragonResponse(pcie_dev_response)
submatrix_to_process = None
if self.laserscanner == "DILT":
self.collector.appendOnChipTemperature(
self.DIL_Tscanner.scan_position)
self.DIL_Tscanner.scan()
self.collector.setNextIndex(self.DIL_Tscanner.pos)
if self.DIL_Tscanner.top_reached:
self.startDownScan.emit()
elif self.DIL_Tscanner.bottom_reached:
self.startUpScan.emit()
if (self.DIL_Tscanner.top_reached or
self.DIL_Tscanner.bottom_reached):
submatrix_to_process = self.DIL_Tscanner.lastsubmatrix
if self.laserscanner == "PFGIT":
self.collector.appendOnChipTemperature(
self.PFGITscanner.scan_position)