Skip to content

Export grid from Stage Explorer to MDA positions? #148

Description

@dpshepherd

Hi @fdrgsp -

Is there an easy way in pymmcore-gui to export the current positions underlying a polygon from the Stage Explorer widget over to a MDA as individual positions? Looking at the widget code, I think one can get all of the ROIs in a grid from the widget properties - but I had trouble figuring out how to extract all of the positions from there.

What I tried:

explorer = window.get_widget("pymmcore_gui.stage_explorer_widget")
manager = explorer.roi_manager
manager.all_rois()

Gives me the shape of the ROI, but I wasn't sure how to get the individual positions out and then add to the MDA.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions