Skip to content

ENH: Using named arguments in an iteration of a parametrization. #206

@tobiasraabe

Description

@tobiasraabe

Is your feature request related to a problem?

Currently, each iteration of a parametrization is usually a tuple, but we would like to have name arguments instead. It is easier to read especially when there are many arguments and the order of the arguments can be ignored.

Describe the solution you'd like

  • Related to pytest, we could introduce pytask.param which receives either args or kwargs and represents one iteration. It also has an id parameter to change the id of the iteration.

  • We could also allow for dictionary inputs to each iteration, checking that the keys match the function arguments.

API breaking implications

None, the old style will be preserved.

Describe alternatives you've considered

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions