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

Correct bug for MM1 format in get_dimensions

parent cd91ee9e
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,9 @@ def get_dimensions(metadata, roi=None, pos=None):
if roi is not None:
roi = int(roi)
if v[0] == '1':
dimensions['position'] = len([m['Label'] for m in metadata['Summary']['InitialPositionList'] if m['Label'].startswith('roi%i'%roi)])
else:
dimensions['position'] = len([m['Label'] for m in metadata['Summary']['StagePositions'] if m['Label'].startswith('roi%i'%roi)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment