Normalisation config widget
cutana_ui.widgets.normalisation_config_widget
¶
Normalisation configuration widget for Cutana UI.
This module provides a dedicated normalisation configuration widget that handles all normalisation-related parameters including method selection and method-specific parameters (a, n_samples, contrast).
NormalisationConfigWidget(config, compact=False)
¶
Bases: VBox
Dedicated normalisation configuration widget with title and method-specific parameters.
set_format_dropdown_ref(format_dropdown)
¶
Set reference to the format dropdown widget.
This allows the normalisation widget to control the format dropdown when flux_conserved resizing is enabled (forcing float32).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
format_dropdown
|
The format dropdown widget from configuration_widget |
required |
set_config_change_callback(callback)
¶
Set callback for configuration changes.
update_config(config)
¶
Update normalisation parameters from config.
get_normalisation_config()
¶
Get current normalisation configuration.
The block is seeded from the config this widget was given, not built from
nothing, because the widget renders only part of it. Returning just the rendered
fields let the caller assign a block with asinh_n_samples missing, and a dot
access on the dynamic copy that reached fitsbolt then invented an empty DotMap
for it rather than failing.