Skip to content

pymmcore_widgets.useq_widgets.points_plans

Widgets that create MultiPoint plans.

Classes

Name Description
GridRowColumnWidget Widget to generate a grid of FOVs within a specified area.
RandomPointWidget Widget to generate random points within a specified area.
RelativePointPlanSelector Widget to select a relative multi-position point plan.

Classes

GridRowColumnWidget

GridRowColumnWidget(parent: QWidget | None = None)

Bases: QWidget

Widget to generate a grid of FOVs within a specified area.

valueChanged

valueChanged = Signal(object)

overlap property

overlap: tuple[float, float]

Return the overlap along x and y.

fov_size property writable

fov_size: tuple[float | None, float | None]

Return the FOV size in (width, height).

value

value() -> GridRowsColumns

Return the values of the widgets.

setValue

setValue(value: GridRowsColumns | Mapping) -> None

Set the values of the widgets.

reset

reset() -> None

Reset value to 1x1, row-wise-snake, with 0 overlap.

RelativePointPlanSelector

RelativePointPlanSelector(parent: QWidget | None = None)

Bases: QWidget

Widget to select a relative multi-position point plan.

See also: PointsPlanWidget which combines this widget with a graphical representation of the points.

In useq, a RelativeMultiPointPlan is one of: - useq.RelativePosition - useq.RandomPoints - useq.GridRowsColumns - useq.GridWidthHeight # not included in this widget

valueChanged

valueChanged = Signal(object)

active_plan_type property

active_plan_type: type[RelativePointPlan]

value

setValue

setValue(plan: RelativeMultiPointPlan) -> None

Set the value of the widget.

Parameters:

Name Type Description Default
plan RelativePosition | RandomPoints | GridRowsColumns

The point plan to set.

required

RandomPointWidget

RandomPointWidget(parent: QWidget | None = None)

Bases: QWidget

Widget to generate random points within a specified area.

valueChanged

valueChanged = Signal(object)

fov_size property writable

fov_size: tuple[float | None, float | None]

Return the FOV size.

start_at property writable

start_at: RelativePosition | int

Return the start_at value.

value

value() -> RandomPoints

Return the values of the widgets.

setValue

setValue(value: RandomPoints | Mapping) -> None

Set the values of the widgets.

reset

reset() -> None

Reset value to 1 point and 0 area.

Re-exports

These can also be imported from this module, but each is documented under its shortest import path (linked below).

Name Description
PointsPlanWidget Widget to select the FOVs per well of the plate.