def __init__(self, model, parent):
QtCore.QObject.__init__(self)
self.sigCalculateWeightMatrix.connect(
model.calculateWeightMatrix)
ret = QtGui.QMessageBox.information(
parent,
'Calculate full weight matrix',
'''<html><head/><body><p>
This will calculate the quadtree's full weight matrix
(<span style='font-family: monospace'>Covariance.weight_matrix</span>)
for this noise/covariance configuration.</p><p>
The calculation is expensive and may take several minutes.
</p></body></html>
''', buttons=(QtGui.QMessageBox.Ok | QtGui.QMessageBox.Cancel))
if ret == QtGui.QMessageBox.Ok:
self.sigCalculateWeightMatrix.emit()
评论列表
文章目录