Skip to content

pymmcore_widgets.experimental

Experimental widgets.

Classes

Name Description
StackViewer A viewer for MDA acquisitions started by MDASequence in pymmcore-plus events.

Classes

StackViewer

StackViewer(
    datastore: QOMEZarrDatastore | None = None,
    sequence: MDASequence | None = None,
    mmcore: CMMCorePlus | None = None,
    parent: QWidget | None = None,
    size: tuple[int, int] | None = None,
    transform: tuple[int, bool, bool] = (0, True, False),
    save_button: bool = True,
)

Bases: QWidget

A viewer for MDA acquisitions started by MDASequence in pymmcore-plus events.

Parameters:

Name Type Description Default
transform tuple[int, bool, bool]
(0, True, False)

construct_canvas

construct_canvas() -> None

add_slider

add_slider(dim: str) -> None

add_image

add_image(event: MDAEvent) -> None

sequenceStarted

sequenceStarted(sequence: MDASequence) -> None

Sequence started by the mmcore. Adjust our settings, make layers etc.

frameReady

frameReady(event: MDAEvent) -> None

Frame received from acquisition, display the image, update sliders etc.

on_mouse_move

on_mouse_move(event: SceneMouseEvent) -> None

Mouse moved on the canvas, display the pixel value and position.

on_display_timer

on_display_timer() -> None

Update display, usually triggered by QTimer started by slider click.

display_image

display_image(img: ndarray, channel: int = 0, grid: int = 0) -> None

on_clim_timer

on_clim_timer(channel: int | None = None) -> None

closeEvent

closeEvent(e: QCloseEvent) -> None

Write window size and position to config file.