Skip to content

Commit dee0601

Browse files
committed
style: Update FPS tooltip text for better understanding.
1 parent def9324 commit dee0601

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

movement/napari/loader_widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def _on_source_software_changed(self, current_text: str):
133133

134134
if is_netcdf:
135135
self.fps_spinbox.setToolTip(
136-
"FPS is read directly from the netCDF file."
136+
"The fps (frames per second) is read directly \n"
137+
"from the netCDF file attributes."
137138
)
138139
else:
139140
self.fps_spinbox.setToolTip(self.fps_default_tooltip)

tests/test_unit/test_napari_plugin/test_data_loader_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def test_on_layer_added_and_deleted(
154154
@pytest.mark.parametrize(
155155
"choice, fps_enabled, tooltip_contains",
156156
[
157-
("movement (netCDF)", False, "directly from the netCDF file"),
157+
("movement (netCDF)", False, "netCDF file attributes"),
158158
("SLEAP", True, "Set the frames per second"),
159159
("DeepLabCut", True, "Set the frames per second"),
160160
],

0 commit comments

Comments
 (0)