本文整理匯總了Python中collector.Collector.appendOnChipTemperature方法的典型用法代碼示例。如果您正苦於以下問題:Python Collector.appendOnChipTemperature方法的具體用法?Python Collector.appendOnChipTemperature怎麽用?Python Collector.appendOnChipTemperature使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類collector.Collector
的用法示例。
在下文中一共展示了Collector.appendOnChipTemperature方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: MainWindow
# 需要導入模塊: from collector import Collector [as 別名]
# 或者: from collector.Collector import appendOnChipTemperature [as 別名]
#.........這裏部分代碼省略.........
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)
self.PFGITscanner.scan()
self.collector.setNextIndex(self.PFGITscanner.pos)
self.state.update("USB", ("PFGI_TscanAmp", self.PFGITscanner.targetT))
if (self.PFGITscanner.top_reached or
self.PFGITscanner.bottom_reached):
submatrix_to_process = self.PFGITscanner.lastsubmatrix
if submatrix_to_process is not None:
self.start_processing(submatrix_to_process)
def start_processing(self, submatrix):
data_reg = [self.state.settings["Secondary"]["start"],
self.state.settings["Secondary"]["length"]]
insane_inds = logic.check_spectra_insanity(submatrix, data_reg)
if insane_inds:
print "Insane channels:", insane_inds
if len(insane_inds) == self.state.settings["Secondary"]["length"]:
print "All specrta are broken, searching"
self.status = "searching"
return