Skip to content

Commit

Permalink
Clarify comments, check for modern NGFF metadata first
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidStirling committed Nov 29, 2024
1 parent 890ed1d commit b5a036f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cellprofiler_core/utilities/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ def map_wells(self):
# Empty well data for some reason
return False
mapper = {}
if 'column_index' in well_data[0]:
# v0.2 format
for row in well_data:
mapper[(str(row['column_index']), str(row['row_index']))] = row['path']
elif "columnIndex" in well_data[0]:
# v0.4 format
if "columnIndex" in well_data[0]:
# NGFF v0.4 format
for row in well_data:
mapper[(str(row['columnIndex']), str(row['rowIndex']))] = row['path']
elif 'column_index' in well_data[0]:
# Older bioformats2raw format
for row in well_data:
mapper[(str(row['column_index']), str(row['row_index']))] = row['path']
else:
for row in well_data:
path = row['path']
Expand Down

0 comments on commit b5a036f

Please sign in to comment.