Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/pymmcore_widgets/mda/_core_mda.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,8 @@ def value(self) -> MDASequence:
# not be in the event
if "p" not in val.axis_order:
axis_order = list(val.axis_order)
# add the "p" axis at the beginning or after the "t" as the default
if "t" in axis_order:
axis_order.insert(axis_order.index("t") + 1, "p")
else:
axis_order.insert(0, "p")
# Always insert "p" at the front
axis_order.insert(0, "p")
replace["axis_order"] = tuple(axis_order)

if replace:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_useq_core_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def test_mda_no_pos_set(global_mmcore: CMMCorePlus, qtbot: QtBot):
assert round(wdg.value().stage_positions[0].y) == 20
assert round(wdg.value().stage_positions[0].z) == 30

assert "p" in wdg.value().axis_order
assert wdg.value().axis_order[0] == "p"


@pytest.mark.parametrize("ext", ["json", "yaml"])
Expand Down
Loading