pwspy.utility.micromanager.MultiStagePosition

class pwspy.utility.micromanager.MultiStagePosition(label, defaultXYStage, defaultZStage, stagePositions, gridRow=0, gridCol=0)[source]

Bases: object

Mirrors the class of the same name from Micro-Manager. Can contain multiple Positon1d or Position2d objects. Ideal for a system with multiple translation stages. It is assumed that there is only a single 2D stage and a single 1D stage.

label

A name for the position

Type

str

xyStage

The name of the 2D stage

zStage

The name of the 1D stage

positions

A list of Position1d and Position2D objects, usually just one of each.

copy()[source]

Creates a copy fo the object

Return type

MultiStagePosition

Returns

A new MultiStagePosition object.

getXYPosition()[source]

Return the first Position2d saved in the positions list

getZPosition()[source]

Return the first Position1d saved in the positions` list. Returns None if no position is found.

renameXYStage(label)[source]

Change the name of the xy stage.

Parameters

label (str) – The new name for the xy Stage