Giter Club home page Giter Club logo

Comments (1)

djarecka avatar djarecka commented on June 1, 2024

It's an old issue, is this still a case?

I've just tested a following workflow and didn't have any problems:

def fun1(a):
    return a + 10

fun1_inter = Function(input_names=["a"],
                      output_names=["fun1_out"],
                      function=fun1)

node_fun1 = Node(fun1_inter, name="fun1")

node_fun1.inputs.a = 4

def fun2(b):
    return 5 * b

fun2_inter = Function(input_names=["b"],
                      output_names=["fun2_out"],
                      function=fun2)

node_fun2 = Node(fun2_inter, name="fun2")


node_iden = Node(IdentityInterface(fields=['b']),
                  name="identity")


wf = Workflow(name="testing_workflow", base_dir="/output/testing")
wf.connect(node_fun1, "fun1_out", node_iden, "b")
wf.connect(node_iden, "b", node_fun2, "b")

res = wf.run()

print(list(res.nodes())[1].result.outputs)

got an output: fun2_out = 70

from nipype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.