Skip to content

Commit

Permalink
Increase logging slow histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Oct 1, 2024
1 parent 24986ff commit e383fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

- Handle a rasterio deprecation ([#1655](../../pull/1655))
- Handle a variation in a bioformats exception ([#1656](../../pull/1656))
- Increase logging slow histograms ([#1658](../../pull/1658))

### Bug Fixes

Expand Down
3 changes: 2 additions & 1 deletion large_image/tilesource/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,8 @@ def histogram( # noqa
for itile in self.tileIterator(format=TILE_FORMAT_NUMPY, **kwargs):
if time.time() - lastlog > 10:
self.logger.info(
'Calculating histogram min/max %d/%d',
'Calculating histogram min/max for frame %d, tile %d/%d',
kwargs.get('frame', 0),
itile['tile_position']['position'], itile['iterator_range']['position'])
lastlog = time.time()
tile = itile['tile']
Expand Down

0 comments on commit e383fd8

Please sign in to comment.