本文整理匯總了Python中collector.Collector.setReflectogrammLength方法的典型用法代碼示例。如果您正苦於以下問題:Python Collector.setReflectogrammLength方法的具體用法?Python Collector.setReflectogrammLength怎麽用?Python Collector.setReflectogrammLength使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類collector.Collector
的用法示例。
在下文中一共展示了Collector.setReflectogrammLength方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: MainWindow
# 需要導入模塊: from collector import Collector [as 別名]
# 或者: from collector.Collector import setReflectogrammLength [as 別名]
#.........這裏部分代碼省略.........
if is_interactive:
self.interaction = interaction.Model()
self.corraverager = Averager(self)
self.corraverager.setNumber(settings["TimeScanner"]["averageNumber"])
self.connectScanerWidget()
self.connectOtherWidget()
self.spectraplot.setChannel(self.otherWidget.plotChannel.value())
self.corrector = DistanceCorrector(self)
self.connectCorrectorWidget()
corrector_settings = state.settings["DistanceCorrector"]
self.corrector.setTargetDistance(corrector_settings["distance"])
self.corrector.setA(corrector_settings["A"])
self.corrector.setEnabled(corrector_settings["enabled"])
self.corrector.setChannel(corrector_settings["channel"])
self.corrector.setReaction(settings["USB"]["DIL_T"])
self.maximizer.measured.connect(self.corrector.appendDistances)
self.corrector.correct.connect(lambda val: self.state.update("USB", ("DIL_T", val)))
state.subscribe("USB",
lambda diff: None if diff[0] != "DIL_T" else self.corrector.setReaction(diff[1]))
self.temperatureplot.t0 = lambda v:self.temperatureplot.myplot(v, 0)
self.temperatureplot.t1 = lambda v:self.temperatureplot.myplot(v, 1)
self.collector.temperatureCurveChanged.connect(self.temperatureplot.t0)
self.collector.temperatureCurve2Changed.connect(self.temperatureplot.t1)
self.collector.setReflectogrammLength(state.settings["PCIE"]["framelength"])
self.status = "waiting"
self.start = time.time()
self.time_prev = time.time()
self.resp_amp = []
self.laserscanner = "PFGIT"
self.enablePFGITscanner(True)
self.scannerSelect.PFGIT.toggled.connect(self.enablePFGITscanner)
if self.scannerSelect.PFGIT.isChecked():
print "PFGIT enabled"
self.maximizer.set_bottom(self.scannerWidget.bottom.value())
self.maximizer.set_dt(self.scannerWidget.dt())
else:
print "DILT enabled"
self.maximizer.set_bottom(self.DILTScannerWidget.bottom.value())
self.maximizer.set_dt(self.DILTScannerWidget.dt())
#WARNING old code! revision may be needed
#self.collector.reflectogrammChanged.connect(self.dragonplot.myplot)
self.collector.spectraOnChipChanged.connect(self.spectraplot.setData)
# This connections must be replaced with clear code
self.collector.sharedArrayChanged.connect(self.memoryupdater.updateShared)
self.memoryupdater.updated.connect(self.correlator.update)
self.memoryupdater.updateShared((self.collector.shared, (2,) + self.collector.upScanMatrix.shape))
self.correlator.setDt(1.)
self.correlator.measured.connect(self.distanceplot.myplot)
示例2: MainWindow
# 需要導入模塊: from collector import Collector [as 別名]
# 或者: from collector.Collector import setReflectogrammLength [as 別名]
#.........這裏部分代碼省略.........
self.corraverager.setNumber(self.scannerWidget.averageNumber.value())
self.spectraplot.setChannel(self.otherWidget.plotChannel.value())
self.corrector = DistanceCorrector(self)
self.connectCorrectorWidget()
self.corrector.setTargetDistance(self.correctorWidget.distance.value())
self.corrector.setA(self.correctorWidget.A.value())
self.corrector.setEnabled(self.correctorWidget.enabled.isChecked())
self.corrector.setChannel(self.correctorWidget.channel.value())
self.corrector.setReaction(self.usbWidget.spinBox_6.value())
self.maximizer.measured.connect(self.corrector.appendDistances)
self.corrector.correct.connect(self.usbWidget.spinBox_6.setValue)
self.usbWidget.spinBox_6.valueChanged.connect(self.corrector.setReaction)
self.usbWorker.measured.connect(self.usbWidget.showResponse)
self.usbWorker.measured.connect(self.collector.appendUSBResponse)
self.usbWorker.statusChanged.connect(self.usbWidget.label_status.setText)
self.temperatureplot.t0 = lambda v:self.temperatureplot.myplot(v, 0)
self.temperatureplot.t1 = lambda v:self.temperatureplot.myplot(v, 1)
self.collector.temperatureCurveChanged.connect(self.temperatureplot.t0)
self.collector.temperatureCurve2Changed.connect(self.temperatureplot.t1)
self.pcieClient = pcie.PCIENetWorker()
self.pcieClient.setPCIESettings(self.pcieWidget.value())
self.pcieClient.measured.connect(self.precollector.appendDragonResponse)
self.precollector.reflectogrammChanged.connect(self.dragonplot.myplot)
self.collector.setReflectogrammLength(self.pcieWidget.framelength.value())
self.pcieClient.start()
#self.pcieClient.measured.connect(lambda x: self.dragonplot.myplot(x.data))
self.isScanning = False
self.enablePulseScanner(True)
self.scannerSelect.pulse.toggled.connect(self.enablePulseScanner)
self.pcieWidget.valueChanged.connect(self.pcieClient.setPCIESettings)
#WARNING old code! revision may be needed
#self.collector.reflectogrammChanged.connect(self.dragonplot.myplot)
self.collector.spectraOnChipChanged.connect(self.spectraplot.setData)
#self.collector.spectraChanged.connect(mypeakdetection)
self.collector.sharedArrayChanged.connect(self.memoryupdater.updateShared)
self.memoryupdater.updated.connect(self.correlator.update)
self.memoryupdater.updated.connect(self.approximator.update)
#self.scanner.dtChanged.connect(self.correlator.setDt)
#self.scanner.dtChanged.connect(self.approximator.setDt)
self.memoryupdater.updateShared((self.collector.shared, (2,) + self.collector.upScanMatrix.shape))
#self.correlator.setDt(65535. / self.scannerWidget.nsteps.value())
self.correlator.setDt(1.)
self.correlator.measured.connect(self.distanceplot.myplot)
#self.approximator.measured.connect(lambda t: self.distanceplot.myplot(t, n=1))
self.scannerWidget.averageNumber.valueChanged.connect(self.corraverager.setNumber)