Skip to content

Commit

Permalink
Rename functions to reflect name change
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Aug 7, 2023
1 parent 8c001e1 commit ba88a7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _create_bin_size_widgets() -> dict[str, tuple[str, QtWidgets.QWidget]]:
return widgets


def create_hypothesis_model_widgets() -> dict[str, tuple[str, QtWidgets.QWidget]]:
def create_optimiser_widgets() -> dict[str, tuple[str, QtWidgets.QWidget]]:
"""Create widgets for setting parameters of the HypothesisModel"""

widgets = {
Expand Down
8 changes: 4 additions & 4 deletions btrack/napari/widgets/create_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
create_track_widgets,
create_update_method_widgets,
)
from btrack.napari.widgets._hypothesis import create_hypothesis_model_widgets
from btrack.napari.widgets._motion import create_motion_model_widgets
from btrack.napari.widgets._optimiser import create_optimiser_widgets


class BtrackWidget(QtWidgets.QScrollArea):
Expand Down Expand Up @@ -50,7 +50,7 @@ def __init__(self, napari_viewer: Viewer) -> None:
self._main_layout.addWidget(self._tabs, stretch=0)
self._add_update_method_widgets()
self._add_motion_model_widgets()
self._add_hypothesis_model_widgets()
self._add_optimiser_widgets()
self._add_config_widgets()
self._add_track_widgets()

Expand Down Expand Up @@ -121,9 +121,9 @@ def _add_motion_model_widgets(self) -> None:
tab.setLayout(layout)
self._tabs.addTab(tab, "Motion")

def _add_hypothesis_model_widgets(self) -> None:
def _add_optimiser_widgets(self) -> None:
"""Create hypothesis model widgets and add to main layout"""
labels_and_widgets = create_hypothesis_model_widgets()
labels_and_widgets = create_optimiser_widgets()
self._widgets.update(
{key: value[1] for key, value in labels_and_widgets.items()}
)
Expand Down

0 comments on commit ba88a7e

Please sign in to comment.