From 2312ab57a1b96fd6c86dbe045fdb31793d083b05 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 16 Jun 2023 16:10:45 -0400 Subject: [PATCH] Fix clearing the style threshold cache --- large_image/tilesource/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/large_image/tilesource/utilities.py b/large_image/tilesource/utilities.py index 22a8ce78f..02d68dd10 100644 --- a/large_image/tilesource/utilities.py +++ b/large_image/tilesource/utilities.py @@ -999,7 +999,7 @@ def histogramThreshold(histogram, threshold, fromMax=False): break tally += hist[idx] if len(_recentThresholds) > 100: - _recentThresholds.empty() + _recentThresholds.clear() _recentThresholds[key] = result return result