Skip to content

Commit

Permalink
remove useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrgsp committed Jan 26, 2025
1 parent c4a7ee7 commit 930c0a9
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/test_useq_core_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,29 +971,3 @@ def _qmsgbox(*args, **kwargs):
# AF column should be hidden
assert pos_table.table().isColumnHidden(af_col)
assert pos_table.table().isColumnHidden(af_btn_col)


def test_core_connected_grid_wdg(qtbot: QtBot, global_mmcore: CMMCorePlus) -> None:
wdg = MDAWidget()
qtbot.addWidget(wdg)
wdg.show()

grid_plan = {
"top": 256,
"bottom": -256,
"left": -256,
"right": 768,
"fov_height": 512,
"fov_width": 512,
}
mda = useq.MDASequence(stage_positions=[(10, 10)], grid_plan=grid_plan)

wdg.setValue(mda)

g_plan = wdg.value().grid_plan
assert isinstance(g_plan, useq.GridFromEdges)
assert g_plan.top == 256
assert g_plan.bottom == -256
assert g_plan.left == -256
assert g_plan.right == 768
assert len(list(mda)) == 6

0 comments on commit 930c0a9

Please sign in to comment.