Skip to content

Commit

Permalink
Remove unnecessary unpacking
Browse files Browse the repository at this point in the history
Signed-off-by: Sukjun Kim <[email protected]>
  • Loading branch information
dandyrilla committed Sep 2, 2024
1 parent 1d0982c commit b9682cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openslide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_thumbnail(self, size):
"""Return a PIL.Image containing an RGB thumbnail of the image.
size: the maximum size of the thumbnail."""
downsample = max(*(dim / thumb for dim, thumb in zip(self.dimensions, size)))
downsample = max(dim / thumb for dim, thumb in zip(self.dimensions, size))
level = self.get_best_level_for_downsample(downsample)
tile = self.read_region((0, 0), level, self.level_dimensions[level])
# Apply on solid background
Expand Down

0 comments on commit b9682cd

Please sign in to comment.