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)
def __init__(self, name): terminals = { 'dataIn': dict(io='in'), 'dataOut': dict(io='out'), } CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): ## Initialize node with only a single input terminal CtrlNode.__init__(self, name, terminals={ 'painters': {'io':'in', 'multi':True}, 'out': {'io':'out'} }) self.sigRenamed.connect(self.renamed)
def __init__(self, name): terminals = { 'dataIn': dict(io='in'), 'dataOut': dict(io='out'), } self._buffer = np.array([]) CtrlNode.__init__(self, name, terminals=terminals)
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() CtrlNode.__init__(self, name, terminals=terminals)
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)
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() CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): terminals = { 'clustersin': { 'io': 'in' }, 'mah': { 'io': 'in' }, 'int_clusters': { 'io': 'out' }, 'ext_clusters': { 'io': 'out' }, 'coords_color': { 'io': 'out' }, 'coords_idx': { 'io': 'out' }, 'clusters': { 'io': 'out' } } CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): self.A = [] terminals = {'In': dict(io='in'), 'ArrayOut': dict(io='out')} CtrlNode.__init__(self, name, terminals=terminals) self.container = addWidget(self.graphicsItem(), 'array', func=self.clear)
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)
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'} } )
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)
def __init__(self, name): terminals = OrderedDict([('In', dict(io='in')), ('time', dict(io='out')), ('V_CH1', dict(io='out')), ('V_CH2', dict(io='out'))]) CtrlNode.__init__(self, name, terminals=terminals) self.comboBox = addWidget(self.graphicsItem(), 'combo', items=self.I.allAnalogChannels)
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'), })
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)
def __init__(self, name): CtrlNode.__init__(self, name, terminals={ 'vrange': { 'io': 'in' }, 'colormap': { 'io': 'out' } })
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)
def __init__(self, name): terminals = { 'clusteri': { 'io': 'in' }, # 'mah': {'io':'in'}, 'clustero': { 'io': 'out' } } CtrlNode.__init__(self, name, terminals=terminals)
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)
def __init__(self, name): terminals = { 'X': dict(io='in'), 'Y': dict(io='in'), 'Z': dict(io='in'), 'XOut': dict(io='out'), 'YOut': dict(io='out'), 'ZOut': dict(io='out'), } self._X = np.array([]) self._Y = np.array([]) self._Z = np.array([]) CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): terminals = { 'Out': dict(io='out'), } CtrlNode.__init__(self, name, terminals=terminals) self.data_size = global_data.BUFFER_SIZE #10000 self.batch_size = self.data_size #/ 10 # Update the whole signal buffer at once self.block_count = self.data_size / self.batch_size # =1 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)
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)
def __init__(self, name): terminals = { 'XdataIn': dict(io='in'), 'YdataIn': dict(io='in'), 'ZdataIn': dict(io='in'), 'XdataOut': dict(io='out'), 'YdataOut': dict(io='out'), 'ZdataOut': dict(io='out'), } self._bufferX = np.array([]) self._bufferY = np.array([]) self._bufferZ = np.array([]) self._avg = np.array([]) self._xcut = np.array([]) CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name, draw_type, **kwargs): CtrlNode.__init__(self, name, **kwargs) self.sigClosed.connect(self.destroy) self.sigRenamed.connect(self.renamed) self.sigUpdateGL.connect(self.updateGL) if draw_type == 'points': shader = PointShaderProgram() elif draw_type == 'lines': shader = LineShaderProgram() elif draw_type == 'triangles': shader = TriangleShaderProgram() buffer = Buffer() colormap = ColorMap() self.pvPainter = Painter(shader, draw_type, buffer, colormap) self.pvPainter.name = self.name
def __init__(self, name): terminals = { 'clustersin': { 'io': 'in' }, 'mah': { 'io': 'in' }, 'clusters': { 'io': 'out' } } for classname in CLASSDICT.values(): terminals[classname] = {'io': 'out'} CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): CtrlNode.__init__(self, name, allowAddInput=True, terminals={ 'A': { 'io': 'in', 'multi': True }, 'B': { 'io': 'in', 'multi': True }, 'O': { 'io': 'out' }, })
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)
def __init__(self, name): CtrlNode.__init__(self, name, terminals={ 'mah': { 'io': 'in' }, 'stats': { 'io': 'in' }, 'coords_values': { 'io': 'out' }, 'ma_idx': { 'io': 'out' } })
def __init__(self, name): CtrlNode.__init__(self, name, terminals={ 'clusters': { 'io': 'in' }, 'ma_idx': { 'io': 'out' }, 'cluster': { 'io': 'out' }, 'sheet': { 'io': 'out' } })
def __init__(self, name): CtrlNode.__init__(self, name, terminals={ 'ma_segment_graph': { 'io': 'in' }, 'mah': { 'io': 'in' }, 'clusters': { 'io': 'out' }, 'ma_segment': { 'io': 'out' } })
def __init__(self, name): terminals = { 'In': dict(io='in'), 'Out': dict(io='out'), } CtrlNode.__init__(self, name, terminals=terminals) # Create a display widget self.widget = QtGui.QWidget() layout = QtGui.QGridLayout() self.widget.setLayout(layout) self.status_widget = QtGui.QLabel("Status") layout.addWidget(self.status_widget) # Create and and a new dock on top of tools and add the display widget to it self.dock = Dock(name) global_data.area.addDock(self.dock, 'above', global_data.tool_dock) self.dock.addWidget(self.widget)
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
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)
def __init__(self, NoiseNode): terminals={ 'gOut': {'io':'out'}} CtrlNode.__init__(self, NoiseNode, terminals=terminals)
def __init__(self, name): CtrlNode.__init__(self, name, terminals={ 'points': {'io':'in'}, 'bbox': {'io':'out'}, 'idx': {'io':'out'} })
def __init__(self, name): terminals = {'trig': dict(io='in'), 'V_out': dict(io='out')} CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): terminals = {} CtrlNode.__init__(self, name, terminals=terminals) self.graphicsItem().nameItem.setPlainText('') self.wg = self.gainIcon(FUNC=self.I.set_gain) self.comboBox = addWidget(self.graphicsItem(), 'generic', self.wg)
def __init__(self, name): terminals = {'value': {'io': 'out', 'multiable': True}} CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): terminals = {'V_in': dict(io='in'), 'V_out': dict(io='out')} CtrlNode.__init__(self, name, terminals=terminals) self.label = addWidget(self.graphicsItem(), 'label', units='V')
def __init__(self, name): terminals = { 'In': dict(io='in', optional=False), #optional=True: operates although this terminal is not connected, however no output?. 'Out': dict(io='out'), } CtrlNode.__init__(self, name, terminals=terminals)
def __init__(self, name): CtrlNode.__init__(self, name, terminals={ 'layers': {'io':'in', 'multi':True}, 'plot_layers': {'io':'in', 'multi':True}, 'bbox': {'io':'in'} })