MCPcopy Create free account
hub / github.com/pyqtgraph/pyqtgraph / process

Method process

pyqtgraph/examples/FlowchartCustomNode.py:106–111  ·  view source on GitHub ↗
(self, dataIn, display=True)

Source from the content-addressed store, hash-verified

104 CtrlNode.__init__(self, name, terminals=terminals)
105
106 def process(self, dataIn, display=True):
107 # CtrlNode has created self.ctrls, which is a dict containing {ctrlName: widget}
108 sigma = self.ctrls['sigma'].value()
109 strength = self.ctrls['strength'].value()
110 output = dataIn - (strength * pg.gaussianFilter(dataIn, (sigma,sigma)))
111 return {'dataOut': output}
112
113
114## To make our custom node classes available in the flowchart context menu,

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected