• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python common.CtrlNode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中pyqtgraph.flowchart.library.common.CtrlNode的典型用法代码示例。如果您正苦于以下问题:Python CtrlNode类的具体用法?Python CtrlNode怎么用?Python CtrlNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CtrlNode类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

 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,代码行数:7,代码来源:wiipoint3d.py


示例2: __init__

    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,代码行数:35,代码来源:analyze_values.py


示例3: __init__

    def __init__(self, name):
        terminals = {
            'dataIn': dict(io='in'),
            'dataOut': dict(io='out'),
        }

        CtrlNode.__init__(self, name, terminals=terminals)
开发者ID:CrazyCrud,项目名称:interactiondesign-python,代码行数:7,代码来源:fft.py


示例4: __init__

 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,代码行数:7,代码来源:operators.py


示例5: __init__

    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,代码行数:9,代码来源:analyze.py


示例6: __init__

 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,代码行数:9,代码来源:FlowchartCustomNode.py


示例7: __init__

	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,代码行数:9,代码来源:views.py


示例8: __init__

 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,代码行数:10,代码来源:wiimote_node_noise.py


示例9: __init__

 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,代码行数:10,代码来源:analyze.py


示例10: __init__

    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,代码行数:11,代码来源:activity.py


示例11: __init__

    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,代码行数:12,代码来源:gestures.py


示例12: __init__

    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,代码行数:15,代码来源:activity.py


示例13: __init__

    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,代码行数:18,代码来源:nodes.py



注:本文中的pyqtgraph.flowchart.library.common.CtrlNode类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python functions.mkBrush函数代码示例发布时间:2022-05-27
下一篇:
Python library.registerNodeType函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap