当前位置: 首页>>代码示例>>Python>>正文


Python flowchart.Node类代码示例

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


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

示例1: __init__

    def __init__(self, name):
        terminals = {
            'accelX': dict(io='out'),
            'accelY': dict(io='out'),
            'accelZ': dict(io='out'),
        }
        self.wiimote = None
        self._acc_vals = []
        self.ui = QtGui.QWidget()
        self.layout = QtGui.QGridLayout()

        label = QtGui.QLabel("Bluetooth MAC address:")
        self.layout.addWidget(label)
        self.text = QtGui.QLineEdit()
        self.layout.addWidget(self.text)
        label2 = QtGui.QLabel("Update rate (Hz)")
        self.layout.addWidget(label2)
        self.update_rate_input = QtGui.QSpinBox()
        self.update_rate_input.setMinimum(0)
        self.update_rate_input.setMaximum(60)
        self.update_rate_input.setValue(20)
        self.update_rate_input.valueChanged.connect(self.set_update_rate)
        self.layout.addWidget(self.update_rate_input)

        self.connect_button = QtGui.QPushButton("connect")
        self.layout.addWidget(self.connect_button)
        self.ui.setLayout(self.layout)
        self.connect_button.clicked.connect(self.connect_wiimote)
        self.btaddr = "b8:ae:6e:1b:ad:a0"  # for ease of use
        self.text.setText(self.btaddr)
        self.update_timer = QtCore.QTimer()
        self.update_timer.timeout.connect(self.update_all_sensors)

        Node.__init__(self, name, terminals=terminals)
开发者ID:ManuKrapf,项目名称:IntTec,代码行数:34,代码来源:wiimote_node.py

示例2: __init__

 def __init__(self, name):
     terminals = {
         'dataInX': dict(io='in'),
         'dataOutX': dict(io='out')
     }
     self._dataInX = np.array([])
     Node.__init__(self, name, terminals=terminals)
开发者ID:Gr4ni,项目名称:ITT-SS15,代码行数:7,代码来源:noisalyzer.py

示例3: __init__

 def __init__(self, name):
     self.plot = None
     ## Init node with single input terminal
     Node.__init__(self, name, terminals={
         'dataIn': {'io': 'in'}
         #'dataOut'
     })
开发者ID:freakimkaefig,项目名称:itt_lamm_lechler,代码行数:7,代码来源:analyze_working_without_nodes.py

示例4: __init__

    def __init__(self, name):
        terminals = {
            'categoryIn': dict(io='in')
        }
        Node.__init__(self, name, terminals)

        self.recog = []
开发者ID:freakimkaefig,项目名称:itt_lamm_lechler,代码行数:7,代码来源:classify.py

示例5: __init__

    def __init__(self, name, proto=None, weightsFile=None, filePath=None):
        Node.__init__(self, name, allowAddInput=True, allowAddOutput=True, allowRemove=True)

        solverFD = SolverProto.DESCRIPTOR

        self.param = LParameter.create(repeated=False, fieldDescriptor=solverFD, expanded=True)
        for param in self.param.children():
            param.setToDefault()
        t = ptree.ParameterTree()
        t.addParameters(self.param, depth=1, showTop=False)
        t.setMinimumHeight(325)
        t.setVerticalScrollBarPolicy(pg.QtCore.Qt.ScrollBarAlwaysOff)
        self.ui = t
        self.proto = SolverProto()
        self.trainLoss, self.testLoss, self.testAcc = None, None, None
        self.niter, self.testInterval = None, None
        if proto is not None:
            self.setProto(proto)
        # if a filePath is given, we use it regardless of the directory of the solver prototxt, and will write a
        # temporary file in that directory for training purposes. otherwise we give the path of the solver file,
        # and hope the train file is in that directory, or else crash!
        if filePath is None:
            if proto is not None:
                filePath = os.path.dirname(proto)
            else:
                filePath = os.curdir
        self.filePath = filePath
        self.weights = weightsFile
开发者ID:elleryrussell,项目名称:caffeViz,代码行数:28,代码来源:SolverNode.py

示例6: __init__

    def __init__(self, name):
        terminals = {"data": dict(io="out"), "categories": dict(io="out")}

        self.ui = QtGui.QWidget()
        self.layout = QtGui.QGridLayout()

        label = QtGui.QLabel("Textfile Input:")
        self.layout.addWidget(label)
        self.text = QtGui.QLineEdit()
        self.layout.addWidget(self.text)
        self.reload_button = QtGui.QPushButton("read")
        self.layout.addWidget(self.reload_button)
        self.ui.setLayout(self.layout)
        self.reload_button.clicked.connect(self._add_file)
        self.text.setText("example_1.csv")

        self.files = {
            "walk": ["walk_1.csv", "walk_2.csv", "walk_3.csv", "walk_4.csv"],
            "hop": ["hop_1.csv", "hop_2.csv", "hop_3.csv", "hop_4.csv"],
            "stand": ["stand_1.csv", "stand_2.csv", "stand_3.csv", "stand_4.csv"],
        }

        self.output = []
        self.categories = []

        self._compute_files()

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

示例7: __init__

 def __init__(self, name):
     terminals = {
         'categories': dict(io='in'),
         'trainigData': dict(io='in'),
         'classifyData': dict(io='in'),
         'classification': dict(io='out'),
     }
     Node.__init__(self, name, terminals=terminals)
开发者ID:ManuKrapf,项目名称:IntTec,代码行数:8,代码来源:classifier.py

示例8: removeTerminal

    def removeTerminal(self, term):
        """Remove the specified terminal from this Node. May specify either the
        terminal's name or the terminal itself.

        Causes sigTerminalRemoved to be emitted."""
        if isinstance(term, NetTerminal):
            name = term._name
        Node.removeTerminal(self, name)
开发者ID:elleryrussell,项目名称:caffeViz,代码行数:8,代码来源:LayerNodes.py

示例9: __init__

 def __init__(self, name):
     terminals = {
         'dataIn': dict(io='in'),
         'X': dict(io='out'),
         'Y': dict(io='out'),
     }
     self._dataIn = [0 in range(100)]
     self.frequency_array = [0 in range(100)]
     Node.__init__(self, name, terminals=terminals)
开发者ID:Gr4ni,项目名称:ITT-SS15,代码行数:9,代码来源:frequalyzer.py

示例10: __init__

 def __init__(self, name):
     terminals = {
         'Znormal': dict(io='in'),
         'Xnormal': dict(io='in'),
         'VectorX': dict(io='out'),
         'VectorY': dict(io='out'),
     }
     self._stuff = np.array([])
     Node.__init__(self, name, terminals=terminals)
开发者ID:MaxSchu,项目名称:NotTheDroidsYouWereLookingFor,代码行数:9,代码来源:analyze.py

示例11: __init__

    def __init__(self, name):
        terminals = {
            "trainingData": dict(io="in"),
            "testData": dict(io="in"),
            "categories": dict(io="in"),
            "category": dict(io="out"),
        }

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

示例12: __init__

    def __init__(self, name):
        terminals = {
            'irVals': dict(io='in'),
            'irX': dict(io='out'),
            'irY': dict(io='out')
        }
        self._ir_vals = []

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

示例13: __init__

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

        self.bufferSize = bufferSize

        Node.__init__(self, name, terminals=terminals)
开发者ID:freakimkaefig,项目名称:itt_lamm_lechler,代码行数:9,代码来源:activity.py

示例14: __init__

    def __init__(self, name):
        terminals = {
            'In': dict(io='in'),
            'Out': dict(io='out'),
        }
        self._ir_vals = []
        self._xy_vals = []
        self.avg_val = None

        Node.__init__(self, name, terminals=terminals)
开发者ID:freakimkaefig,项目名称:itt_lamm_lechler,代码行数:10,代码来源:gestures.py

示例15: __init__

 def __init__(self, name):
     '''terminals = { 
         #'In1': {'io':'in'}, 'In2': {'io':'in'},
         'In1': dict(io='in'), 'In2': dict(io='in'),
         'Out': dict(io='out'),
     }
     CtrlNode.__init__(self, name, terminals=terminals)
     Node.__init__(self, name, terminals={'In1': {'io':'in'}, 'In2': {'io':'in'}})'''
     Node.__init__(self, name, terminals={'In1': {'io':'in'}, 'In2': {'io':'in'},
         'Out': {'io':'out'}})
开发者ID:adikele,项目名称:SciEdu-Nodes-Simulator,代码行数:10,代码来源:nodes.py


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