Skip to content

Commit

Permalink
merge master -Dorg -Ssuccess-only: PR 398 (getGridSize() handles plat…
Browse files Browse the repository at this point in the history
…es with no Wells)
  • Loading branch information
snoopycrimecop committed Feb 28, 2024
2 parents 4732540 + 9013e72 commit 1c59d49
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 @@ -6617,7 +6617,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 1c59d49

Please sign in to comment.