Skip to content

Commit

Permalink
Guard fetching internal metadata on zarr sources that have less data
Browse files Browse the repository at this point in the history
manthey committed Mar 21, 2024
1 parent f25d4c6 commit 7c65f72
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
@@ -4,6 +4,7 @@

### Improvements
- 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))
5 changes: 4 additions & 1 deletion sources/zarr/large_image_source_zarr/__init__.py
Original file line number Diff line number Diff line change
@@ -356,8 +356,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

Check warning on line 363 in sources/zarr/large_image_source_zarr/__init__.py

Codecov / codecov/patch

sources/zarr/large_image_source_zarr/__init__.py#L362-L363

Added lines #L362 - L363 were not covered by tests
return result

def getAssociatedImagesList(self):

0 comments on commit 7c65f72

Please sign in to comment.