Skip to content

TypeError in get_function_params #3797

@TomJohnZ

Description

@TomJohnZ

Snakemake version
9.11.2

Describe the bug
When attempting to pass an unwrapped function to params, I receive a

TypeError: '<function ...>' is not a callable object

Even when the function is callable.

The expected outcome is the error

unpack() is not allowed with params. 

Minimal example

getparams = lambda wildcard, output: {"key": {output}}
rule paramsdictfail1:
    output: "out.txt"
    params: unpack(getparams)
    shell: "echo '{params}' | tee out.txt"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions