def test_02(): n1 = FunctionNode('node1') n2 = FunctionNode('node2') n1._add_output('o1') n1._add_output('o2') n2._add_input('i1') n2._add_input('i2') n2._add_output('o1') n1 >> n2
def test_03(): n1 = FunctionNode('node1') n2 = FunctionNode('node2') out = n1._add_output('o1') n2._add_input('i1') n2._add_output('o1') out >> n2
def test_06(): n1 = FunctionNode('node1') n2 = FunctionNode('node2') out1 = n1._add_output('o1') out2 = n1._add_output('o2') _, final = n2._add_pair('i1', 'o1') n2._add_input('i2') (out1, out2) >> n2
def test_04(): n1 = FunctionNode('node1') n2 = FunctionNode('node2') out = n1._add_output('o1') n2._add_pair('i1', 'o1') final = out >> n2
def __init__(self, name): FunctionNode.__init__(self, name) self._missing_input_handler = MissingInputAddOne(output_fmt='result')
def __init__(self, name, array): FunctionNode.__init__(self, name) self._add_output('array') self.outputs.array.data = N.asanyarray(array)