Skip to content

v0.4.0

Compare
Choose a tag to compare
@cedricleroy cedricleroy released this 23 Mar 13:38
· 68 commits to master since this release
  1. Fix single output when dealing with iterables
    Previously, returning one output with an iterable was resulting in taking the first element. See #4 and #6.
  2. Possible to use kwargs in functions
    Args and kwargs can be used in functions, see #3.
    @graph.register(
        inputs=['a', 'b'],
        args=['c'],
        kwargs=['d'],
        outputs=['e']
    )
    def f_my_function(a, b, *args, **kwargs):
        return a + b + args[0] + kwargs['d']
  1. Can create a Node without using the decorator, #2
graph.add_node(f_my_function, inputs=['a', 'b'], outputs=['c'])
  1. Dag pretty print, #1
    Use graph.dag