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

Auto-generation of parameters #62

Open
SimonHeybrock opened this issue Aug 5, 2024 · 0 comments
Open

Auto-generation of parameters #62

SimonHeybrock opened this issue Aug 5, 2024 · 0 comments

Comments

@SimonHeybrock
Copy link
Member

SimonHeybrock commented Aug 5, 2024

Current it is required to explicitly create a parameter for each workflow input that is to be displayed in a widget. We should explore if we can fall back to auto-generating this. This would make the widget usable with less need for customization, at least for basic parameter types.

The approach would likely require inspecting the type of the workflow input, which can map to a corresponding parameter type. This will work fine for basics such as int, float, str, bool, etc., but not for types that alias some generic containers such as scipp.Variable.

I think it is probably useful to implement this anyway: Even if the solution does not work in all cases it will nevertheless reduce the need for boilerplate code (both in our own technique packages as well as for users writing their own workflows).

@SimonHeybrock SimonHeybrock mentioned this issue Aug 5, 2024
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant