Skip to content

Commit

Permalink
Merge pull request #1365 from girder/fix-series-detection
Browse files Browse the repository at this point in the history
Fix series detection for some bioformats files
  • Loading branch information
manthey authored Nov 9, 2023
2 parents d63c892 + 04ca2e8 commit 6685ba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

### Bug Fixes
- Default to "None" for the DICOM assetstore limit ([#1359](../../pull/1359))
- Fix series detection for some bioformats files ([#1365](../../pull/1365))

## 1.26.0

Expand Down
4 changes: 2 additions & 2 deletions sources/bioformats/large_image_source_bioformats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _reduceLogging():
'org/slf4j/LoggerFactory', 'getLogger',
'(Ljava/lang/String;)Lorg/slf4j/Logger;', rootLoggerName)
logLevel = javabridge.get_static_field(
'ch/qos/logback/classic/Level', 'WARN', 'Lch/qos/logback/classic/Level;')
'ch/qos/logback/classic/Level', 'ERROR', 'Lch/qos/logback/classic/Level;')
javabridge.call(rootLogger, 'setLevel', '(Lch/qos/logback/classic/Level;)V', logLevel)
except Exception:
pass
Expand Down Expand Up @@ -352,7 +352,7 @@ def _getSeriesStarts(self, rdr): # noqa
for idx in range(1, self._metadata['seriesCount']):
rdr.setSeries(idx)
if (rdr.getSizeX() == self._metadata['sizeX'] and
rdr.getSizeY == self._metadata['sizeY']):
rdr.getSizeY() == self._metadata['sizeY']):
frameList.append([idx])
if nextSeriesNum == idx:
nextSeriesNum = idx + 1
Expand Down

0 comments on commit 6685ba9

Please sign in to comment.