Skip to content

Commit

Permalink
Merge pull request #1481 from girder/zarr-guard-internal-metadata
Browse files Browse the repository at this point in the history
Guard fetching internal metadata on zarr sources that have less data
  • Loading branch information
manthey authored Mar 21, 2024
2 parents bd6c0ae + 7c65f72 commit d71ed40
Show file tree
Hide file tree
Showing 2 changed files with 5 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
- Prioritize tile sinks ([#1478](../../pull/1478))
- Add a dependency to the zarr source to read more compression types ([#1480](../../pull/1480))
- Guard fetching internal metadata on zarr sources that have less data ([#1481](../../pull/1481))

### Bug Fixes
- Fix an issue with single band on multi source with non uniform sources ([#1474](../../pull/1474))
Expand Down
5 changes: 4 additions & 1 deletion sources/zarr/large_image_source_zarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,11 @@ def getInternalMetadata(self, **kwargs):
result = {}
result['zarr'] = {
'base': self._zarr.attrs.asdict(),
'main': self._series[0][0].attrs.asdict(),
}
try:
result['zarr']['main'] = self._series[0][0].attrs.asdict()
except Exception:
pass
return result

def getAssociatedImagesList(self):
Expand Down

0 comments on commit d71ed40

Please sign in to comment.