Skip to content

Commit

Permalink
Merge pull request #1215 from girder/band-range-sharing
Browse files Browse the repository at this point in the history
When restyling a source, share band range calculations
  • Loading branch information
manthey authored Jun 21, 2023
2 parents 46a83e7 + 3e0fd1e commit e3c106d
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 @@ -8,6 +8,7 @@
### Improvements
- Harden the nd2 source to allow it to read more files ([#1207](../../pull/1207))
- Add ipyleaflet representation for JupyterLab ([#1065](../../pull/1065))
- When restyling a source, share band range calculations ([#1215](../../pull/1215))

### Changes
- Change how extensions and fallback priorities in Girder interact ([#1208](../../pull/1208))
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 @@ -193,7 +193,8 @@ def _setStyle(self, style):
delattr(self, key)
except Exception:
pass
self._bandRanges = {}
if not hasattr(self, '_bandRanges'):
self._bandRanges = {}
self._jsonstyle = style
if style is not None:
if isinstance(style, dict):
Expand Down

0 comments on commit e3c106d

Please sign in to comment.