Skip to content

Commit b27c799

Browse files
committed
simulated_setup_from_image: fix order of dimensions.
An image in Numpy and read from PIL has size (M,N) with M being rows/height/y and N being will columns/width/x.
1 parent 2c4932a commit b27c799

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

microscope/simulators/stage_aware_camera.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def simulated_setup_from_image(
154154

155155
stage = SimulatedStage(
156156
{
157-
"x": microscope.AxisLimits(0, image.shape[0]),
158-
"y": microscope.AxisLimits(0, image.shape[1]),
157+
"x": microscope.AxisLimits(0, image.shape[1]),
158+
"y": microscope.AxisLimits(0, image.shape[0]),
159159
"z": microscope.AxisLimits(-50, 50),
160160
}
161161
)

0 commit comments

Comments
 (0)