Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link limit is wrong for the kwargs of a calcfunction task #318

Open
superstar54 opened this issue Sep 18, 2024 · 0 comments
Open

Link limit is wrong for the kwargs of a calcfunction task #318

superstar54 opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@superstar54
Copy link
Member

superstar54 commented Sep 18, 2024

from aiida_workgraph import task
@task()
def test(a, b=1, **kwargs):
    return {"sum": a + b, "product": a * b}

test1 = test.task()
assert test1.inputs["kwargs"].link_limit == 1e6

works

from aiida_workgraph import task


@task.calcfunction()
def test(a, b=1, **kwargs):
    return {"sum": a + b, "product": a * b}

test1 = test.task()
assert test1.inputs["kwargs"].link_limit == 1e6

failed

@superstar54 superstar54 added the bug Something isn't working label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant