diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fc7a8de0..2f8a8b9e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ - Harden reading some nc files ([#1218](../../pull/1218)) - Increase the cache used for opening directories in the pylibtiff source ([#1221](../../pull/1221)) - Refactor style locking to increase parallelism ([#1224](../../pull/1224)) +- Better isGeospatial consistency ([#1228](../../pull/1228)) +- Better channel handling on frame selector ([#1222](../../pull/1222)) ### Changes - Clean up some old slideatlas url references ([#1223](../../pull/1223)) @@ -13,6 +15,8 @@ ### Bug Fixes - Pass style to histogram endpoint as json ([#1220](../../pull/1220)) - Don't show frame controls outside of the geojs viewer ([#1226](../../pull/1226)) +- Fix updating the hidden style field for the frame selector ([#1227](../../pull/1227)) +- Fix a bug calculating some histograms ([#1231](../../pull/1231)) ## 1.23.0 diff --git a/large_image/cache_util/cache.py b/large_image/cache_util/cache.py index 9a02cd070..e999ea7f2 100644 --- a/large_image/cache_util/cache.py +++ b/large_image/cache_util/cache.py @@ -199,9 +199,10 @@ def __call__(cls, *args, **kwargs): # noqa - N805 except KeyError: pass # This conditionally copies a non-styled class and adds a style. - if kwargs.get('style') and hasattr(cls, '_setStyle'): + if (kwargs.get('style') and hasattr(cls, '_setStyle') and + kwargs.get('style') != getattr(cls, '_unstyledStyle', None)): subkwargs = kwargs.copy() - subkwargs.pop('style') + subkwargs['style'] = getattr(cls, '_unstyledStyle', None) subresult = cls(*args, **subkwargs) result = subresult.__class__.__new__(subresult.__class__) with subresult._sourceLock: diff --git a/large_image/tilesource/geo.py b/large_image/tilesource/geo.py index 852e95507..91c2c48f5 100644 --- a/large_image/tilesource/geo.py +++ b/large_image/tilesource/geo.py @@ -55,6 +55,8 @@ class GDALBaseFileTileSource(GeoBaseFileTileSource): (rasterio, mapnik, etc.) """ + _unstyledStyle = '{}' + extensions = { None: SourcePriority.MEDIUM, 'geotiff': SourcePriority.PREFERRED,