Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Nov 6, 2024
1 parent fabdf0e commit 30371b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pymmcore_widgets/mda/_core_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def setValue(self, value: Sequence[Position]) -> None: # type: ignore [override
self._set_position_table_editable(False)
value = tuple(value)
super().setValue(value)
self._update_z_enablement()

# ----------------------- private methods -----------------------

Expand Down
6 changes: 4 additions & 2 deletions src/pymmcore_widgets/useq_widgets/_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
QWidget,
)
from superqt.fonticon import icon
from superqt.utils import signals_blocked

from ._column_info import FloatColumn, TextColumn, WdgGetSet, WidgetColumn
from ._data_table import DataTableWidget
Expand Down Expand Up @@ -289,8 +290,9 @@ def setValue(self, value: Sequence[useq.Position]) -> None: # type: ignore [ove
_values.append({**v.model_dump(exclude_unset=True), **_af})

super().setValue(_values)
self.include_z.setChecked(_include_z)
self.af_per_position.setChecked(_use_af)
with signals_blocked(self):
self.include_z.setChecked(_include_z)
self.af_per_position.setChecked(_use_af)

def save(self, file: str | Path | None = None) -> None:
"""Save the current positions to a JSON file."""
Expand Down

0 comments on commit 30371b3

Please sign in to comment.