menus.params_editor

Classes

EditableParam

OptionalEditableParam

SolverParamsEditor

Widget for editing SolverParams.

Functions

_get_base_type(→ type)

Extract the base numeric type from a type annotation.

Module Contents

Extract the base numeric type from a type annotation.

For example:

int -> int float -> float int | None -> int float | None -> float

Bases: qtpy.QtWidgets.QWidget

Bases: EditableParam

Bases: qtpy.QtWidgets.QWidget

Widget for editing SolverParams. Spinboxes will be created for each parameter in SolverParams and linked such that editing the value in the spinbox will change the corresponding parameter. Checkboxes will also be created for each optional parameter (group) and linked such that unchecking the box will update the parameter value to None, and checking will update the parameter to the current spinbox value. To update for a backend change to SolverParams, emit the new_params signal, which the spinboxes and checkboxes will connect to and use to update the UI and thus the stored solver params.

Set up validation constraints for chunking fields.

Update overlap_size spinbox maximum based on window_size.

Enable/disable overlap_size and single_window_start based on window_size.

When overlap_size is checked, uncheck single_window_start and remember choice.

When single_window_start is checked, uncheck overlap_size and remember choice.

Set the maximum frame index for single_window_start.

Args:

max_frame: The maximum valid frame index (typically num_frames - 1).