Skip to content

parametrized_dag_factory behaviour #62

Description

@sylvainbonnot

The behaviour of parametrized_dag_factory
is not too intuitive: one gets the following

@code_to_dag
def testdag():
    a = criss(x,y)
    b = cross(aa, bb)
    c = apple(a, b)

dag_factory = parametrized_dag_factory(testdag, 'a')
Sig(dag_factory(x=1,y=2))
# <Sig (b)>

but the expected might be <Sig (aa, bb)> ?

Also, when a function in the dag has no params, the parametrized_dag is not consistent with the above:

@code_to_dag
def testdag():
    a = criss()
    b = cross(aa, bb)
    c = apple(a, b)

dag_factory = parametrized_dag_factory(testdag, 'a')
Sig(dag_factory())
# <Sig (a, b)>  # to be consistent with the above, it should be Sig (b)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions