當前位置: 首頁>>代碼示例>>Python>>正文


Python CtrlNode.__init__方法代碼示例

本文整理匯總了Python中pyqtgraph.flowchart.library.common.CtrlNode.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python CtrlNode.__init__方法的具體用法?Python CtrlNode.__init__怎麽用?Python CtrlNode.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pyqtgraph.flowchart.library.common.CtrlNode的用法示例。


在下文中一共展示了CtrlNode.__init__方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
 def __init__(self, name):
     terminals = {
         'dataIn': dict(io='in'),
         'dataOut': dict(io='out'),
     }
     self._buffer = np.array([])
     CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:freakimkaefig,項目名稱:itt_lamm_lechler,代碼行數:9,代碼來源:wiipoint3d.py

示例2: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
    def __init__(self, name):
        terminals = {
            "accelX": dict(io="in"),
            "accelY": dict(io="in"),
            "accelZ": dict(io="in"),
            "activity": dict(io="out"),
        }

        self.activities = {
            "walk": "You're walking",
            "hop": "You're running",
            "none": "No activity yet...",
            "stand": "You're standing",
            "nodata": "Computing data...",
        }

        self.classes = ["stand", "walk", "hop"]

        self.classifier = svm.SVC()

        self.sample_data = {}

        self.sample_rate = 30

        self.sample_data["walk"] = self._read_data("walk")
        self.sample_data["stand"] = self._read_data("stand")
        self.sample_data["hop"] = self._read_data("hop")

        self.sample_data["walk"] = self._transform_data(self.sample_data["walk"])
        self.sample_data["stand"] = self._transform_data(self.sample_data["stand"])
        self.sample_data["hop"] = self._transform_data(self.sample_data["hop"])

        self._train_data()

        CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:CrazyCrud,項目名稱:interactiondesign-python,代碼行數:37,代碼來源:analyze_values.py

示例3: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
    def __init__(self, name):
        terminals = {
            'dataIn': dict(io='in'),
            'dataOut': dict(io='out'),
        }

        CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:CrazyCrud,項目名稱:interactiondesign-python,代碼行數:9,代碼來源:fft.py

示例4: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
 def __init__(self, name):
     terminals = {
         'dataIn': dict(io='in'),  
         'dataOut': dict(io='out')  # to specify whether it is input or output
     }                              # other more advanced options are available
                                    # as well..
     CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:hanslovsky,項目名稱:ivigraph,代碼行數:9,代碼來源:operators.py

示例5: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
    def __init__(self, node_name):
        terminals = {
            'x_axis_in': dict(io='in'),
            'z_axis_in': dict(io='in'),
            'x_rotation_out': dict(io='out'),
            'z_rotation_out': dict(io='out')
        }

        CtrlNode.__init__(self, node_name, terminals=terminals)
開發者ID:KiKiWuWu,項目名稱:ITT,代碼行數:11,代碼來源:analyze.py

示例6: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
 def __init__(self, name):
     ## Define the input / output terminals available on this node
     terminals = {
         'dataIn': dict(io='in'),    # each terminal needs at least a name and
         'dataOut': dict(io='out'),  # to specify whether it is input or output
     }                              # other more advanced options are available
                                    # as well..
     
     CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:acrsilva,項目名稱:animated-zZz-machine,代碼行數:11,代碼來源:FlowchartCustomNode.py

示例7: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
	def __init__(self, name):
		self.view = None
		## Initialize node with only a single input terminal
		CtrlNode.__init__(  self, name, 
							terminals={
								'data'  : {'io':'in'},
								'labelImage':{'io':'out'}
							}
		)
開發者ID:DerThorsten,項目名稱:ivigraph,代碼行數:11,代碼來源:views.py

示例8: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
 def __init__(self, name):
     self.plot = None
     self.curveOrig = None
     self.curveNoise = None
     
     CtrlNode.__init__(self, name, terminals={
         'origIn': dict(io='in'),
         'noiseIn': dict(io='in'),
         'filterIn': dict(io='in'),
     })
開發者ID:freakimkaefig,項目名稱:itt_lamm_lechler,代碼行數:12,代碼來源:wiimote_node_noise.py

示例9: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
 def __init__(self, name):
     terminals = {
         'xIn': dict(io='in'),
         'zIn': dict(io='in'),
         'xOut': dict(io='out'),
         'yOut': dict(io='out'),
     }
     self._normalVector = np.array([])
     self._offset = 512
     CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:MaxSchu,項目名稱:NotTheDroidsYouWereLookingFor,代碼行數:12,代碼來源:analyze.py

示例10: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
    def __init__(self, name):
        terminals = {
            'dataIn': dict(io='in'),
            'convolution': dict(io='out'),
        }

        self.bufferSize = bufferSize
        self.size = convolutionSize
        self.kernel = None

        CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:freakimkaefig,項目名稱:itt_lamm_lechler,代碼行數:13,代碼來源:activity.py

示例11: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
    def __init__(self, name):
        terminals = {
            'dataIn': dict(io='in'),
            'buttons': dict(io='in'),
            'dataOut': dict(io='out'),
        }
        self._buffer = np.array([])
        self.buttons = None
        self.plusPressed = False
        self.minusPressed = False

        CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:freakimkaefig,項目名稱:itt_lamm_lechler,代碼行數:14,代碼來源:gestures.py

示例12: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
    def __init__(self, name):
        terminals = {
            'accelX': dict(io='in'),
            'accelY': dict(io='in'),
            'accelZ': dict(io='in'),
            'activity': dict(io='out'),
        }

        self.activities = {
            'walking': 'You\'re walking',
            'running': 'You\'re running', 'none': 'No activity yet...',
            'standing': 'You\'re standing',
            'nodata': 'Computing data...'}

        CtrlNode.__init__(self, name, terminals=terminals)
開發者ID:CrazyCrud,項目名稱:interactiondesign-python,代碼行數:17,代碼來源:activity.py

示例13: __init__

# 需要導入模塊: from pyqtgraph.flowchart.library.common import CtrlNode [as 別名]
# 或者: from pyqtgraph.flowchart.library.common.CtrlNode import __init__ [as 別名]
    def __init__(self, name):
        terminals = {
            'Out': dict(io='out')
        }
        CtrlNode.__init__(self, name, terminals=terminals)

        self.data_size = global_data.BUFFER_SIZE
        self.batch_size = self.data_size #/ 10 # Update the whole signal buffer at once
        self.block_count = self.data_size / self.batch_size
        self.data = [0] * self.data_size  # Signal data buffer

        # Create and init update timer
        self.timer = QtCore.QTimer()
        self.timer.timeout.connect(self.updateSignal)
        self.timer.start(global_data.UPDATE_INTERVAL)

        # Pointer points to the value that will be updated next
        self.pointer = 0
開發者ID:adikele,項目名稱:SciEdu-Nodes-Simulator,代碼行數:20,代碼來源:nodes.py


注:本文中的pyqtgraph.flowchart.library.common.CtrlNode.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。