motile_plugin.widgets.motile.params_editor

Classes

EditableParam

OptionalEditableParam

SolverParamsEditor

Widget for editing SolverParams.

Module Contents

class motile_plugin.widgets.motile.params_editor.EditableParam(param_name: str, solver_params: motile_plugin.backend.solver_params.SolverParams, negative: bool = False)

Bases: qtpy.QtWidgets.QWidget

param_name
field
dtype
title
negative
param_label
param_value
layout
_param_label_widget() qtpy.QtWidgets.QLabel
update_from_params(params: motile_plugin.backend.solver_params.SolverParams)
class motile_plugin.widgets.motile.params_editor.OptionalEditableParam(param_name: str, solver_params: motile_plugin.backend.solver_params.SolverParams, negative: bool = False)

Bases: EditableParam

_param_label_widget() qtpy.QtWidgets.QCheckBox
update_from_params(params: motile_plugin.backend.solver_params.SolverParams)
toggle_enable(checked: bool)
toggle_visible(visible: bool)
class motile_plugin.widgets.motile.params_editor.SolverParamsEditor

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.

new_params
solver_params
param_categories
iou_row: OptionalEditableParam
main_layout
_params_group(title: str, param_category: str, negative: bool) qtpy.QtWidgets.QWidget