Skip to content

Commit

Permalink
Merge branch 'master' into frame-selection-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley authored Jun 30, 2023
2 parents f101b29 + b0681a6 commit 02cb806
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
- 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))

### 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

Expand Down
5 changes: 3 additions & 2 deletions large_image/cache_util/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions large_image/tilesource/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class GDALBaseFileTileSource(GeoBaseFileTileSource):
(rasterio, mapnik, etc.)
"""

_unstyledStyle = '{}'

extensions = {
None: SourcePriority.MEDIUM,
'geotiff': SourcePriority.PREFERRED,
Expand Down

0 comments on commit 02cb806

Please sign in to comment.