Skip to content

Add display as a traitlet in SPEalgorithm component #224

@pcorcam

Description

@pcorcam

Please describe the use case that requires this feature.
Needed to run (subclasses of) the FlatFieldSPENominalNectarCAMCalibrationTool when defining the option to display plots using traitlets.config.

Describe the solution you'd like
Right now, display is passed as a kwarg to the SPEalgorithm component; see also user_scripts/ggrolleron/gain_SPEfit_computation.py. I suggest to define display as a configurable trait of the SPEalgorithm component. That way, we can also pass this option as e.g. config["FlatFieldSPENominalNectarCAMCalibrationTool"].display = False.

Additional context
Note that SPEalgorithm already contains a method with the name display, so need to be careful with names.

Metadata

Metadata

Assignees

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