Skip to content

xtriggers: cannot use python collections in xtrigger signatures #7282

@ColemanTom

Description

@ColemanTom

Xtriggers: Docs and code don't align or am I misinterpreting?

Looking at the docs for custom xtriggers I feel like it is saying the arguments can be any type, for example, floats, strings, lists. But, at least when I've tried to do something like my_xtrig = my_xtrigger(foo=[1,2]) cylc does not like this and fails (I think it splits on the comma?). Similarly ["A", "B"] fails as it tries to unqoute strings and fails.

So either I'm doing something wrong, or xtriggers do not handle all data types

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is wrong :(

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions