Skip to content

Execute button naming #16

@OwenArnold

Description

@OwenArnold

I'm not sure we should do anything about this, but just thought I'd flag up the problem of using a lambda function. Maybe we could allow binding of a lambda function as a tuple element, the other element being a name. Or maybe we just restrict to named functions?

from scipp_widgets.widgets import ProcessWidget
sum = lambda x,dim:sc.sum(x, dim)
ProcessWidget(sum, [data_input, dimension_input])

Subsequent button called 'lambda'

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