Skip to content
Snippets Groups Projects
Commit 3f0d769b authored by Hugo CHAUVET's avatar Hugo CHAUVET :bicyclist:
Browse files

Fix bug in reading position of xystage in metadata

parent c4c958c5
Branches
Tags
1 merge request!3Dev
...@@ -749,8 +749,12 @@ def getMMtiles(metadata, selected_roi, tilesondisk): ...@@ -749,8 +749,12 @@ def getMMtiles(metadata, selected_roi, tilesondisk):
break break
else: else:
xt[ind] = pl['DevicePositions'][0]['Position_um'][0] # Find the name of the stage
yt[ind] = pl['DevicePositions'][0]['Position_um'][1] for dev in pl['DevicePositions']:
if dev['Device'] == 'XYStage':
xt[ind] = dev['Position_um'][0]
yt[ind] = dev['Position_um'][1]
break
else: else:
IJ.log("[WARNING]: File %s listed on metadata does not exist on disk" % pl['Label']) IJ.log("[WARNING]: File %s listed on metadata does not exist on disk" % pl['Label'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment