Skip to content

Commit

Permalink
Merge pull request #1810 from girder/bioformats-test-read
Browse files Browse the repository at this point in the history
Test reading from lower tile levels in bioformats
  • Loading branch information
manthey authored Feb 5, 2025
2 parents 27e4963 + 2e132c8 commit d19f82e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Be more specific in casting when converting images via vips ([#1795](../../pull/1795))
- Improve how ometiff internal metadata is exposed ([#1806](../../pull/1806))
- Show histogram auto range calculated values ([#1803](../../pull/1803))
- Test reading from lower tile levels in bioformats ([#1810](../../pull/1810))

### Bug Fixes

Expand Down
4 changes: 4 additions & 0 deletions sources/bioformats/large_image_source_bioformats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,10 @@ def _getSeriesStarts(self, rdr): # noqa
lastX, lastY = rdr.getSizeX(), rdr.getSizeY()
for idx in range(1, self._metadata['seriesCount']):
rdr.setSeries(idx)
try:
self._bioimage.read(series=idx, rescale=False, XYWH=(0, 0, 1, 1))
except Exception:
continue
if (rdr.getSizeX() == self._metadata['sizeX'] and
rdr.getSizeY() == self._metadata['sizeY'] and
rdr.getImageCount() == self._metadata['imageCount']):
Expand Down

0 comments on commit d19f82e

Please sign in to comment.