Skip to content

Commit

Permalink
Remove some duplicate code.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Sep 15, 2020
1 parent 3a375c3 commit b6cacfd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions sources/ometiff/large_image_source_ometiff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ def __init__(self, path, **kwargs):
TiledTiffDirectory(largeImagePath, 0, mustBeTiled=None)
if entry else None
for entry in self._omeLevels]
self._directoryCache = {}
self._directoryCacheMaxSize = max(20, len(self._omebase['TiffData']) * 3)
self.tileWidth = base.tileWidth
self.tileHeight = base.tileHeight
self.levels = len(self._tiffDirectories)
Expand Down
2 changes: 1 addition & 1 deletion test/test_source_ometiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def testTilesFromOMETiff():

def testTilesFromOMETiffWithSubIFD():
imagePath = utilities.externaldata('data/sample.subifd.ome.tif.sha512')
source = large_image_source_ometiff.OMETiffFileTileSource(imagePath)
source = large_image_source_ometiff.OMETiffFileTileSource(imagePath, frame=1)
tileMetadata = source.getMetadata()

assert tileMetadata['tileWidth'] == 256
Expand Down

0 comments on commit b6cacfd

Please sign in to comment.