scipp / scipp/ess

[ESSREDUCE] `ParamWithOptions` fails to instantiate when the associated parameter has a default value on the workflow

Open
#652 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

essreduce
Dominant language
Python
Stars
1
Forks
3
Avg merge
2d 11h
Merged PRs (30d)
17

Description

ParamWithOptions is used to register workflow GUI parameter that have options.

If the sciline type that is associated with the GUI parameter has a default value in the workflow, then the instantiation of the parameter widget fails with the error:

TypeError: ParamWithOptions.__init__() missing 1 required keyword-only argument: 'options'

If the sciline type does not have a default value then it works.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the workflow GUI parameter instantiation with ParamWithOptions when the associated sciline type has a default value, then compare it with a type without one. Trace how the widget is constructed and ensure the default-value case no longer raises the missing options TypeError while options remain available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.