Skip to content

Commit

Permalink
getGridSize() handles plates with no Wells
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 14, 2024
1 parent d676cac commit 9013e72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6656,7 +6656,10 @@ def getGridSize(self):
"where plate.id = :id"
res = q.projection(query, params, self._conn.SERVICE_OPTS)
(row, col) = res[0]
self._gridSize = {'rows': row.val+1, 'columns': col.val+1}
if row is None or col is None:
self._gridSize = {'rows': 0, 'columns': 0}
else:
self._gridSize = {'rows': row.val+1, 'columns': col.val+1}
return self._gridSize

def getWellGrid(self, index=0):
Expand Down

0 comments on commit 9013e72

Please sign in to comment.