Skip to content

Commit 3bb9257

Browse files
committed
Add more tests.
1 parent 6d5a372 commit 3bb9257

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tiatoolbox/wsicore/wsireader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ def _info(self: OpenSlideWSIReader) -> WSIMeta:
22372237

22382238
# Fallback to calculating objective power from mpp
22392239
if objective_power is None:
2240-
if mpp is not None:
2240+
if mpp is not None: # pragma: no cover
22412241
objective_power = utils.misc.mpp2common_objective_power(
22422242
float(np.mean(mpp)),
22432243
)
@@ -3798,7 +3798,7 @@ def __init__(
37983798

37993799
self._zarr_lru_cache = zarr.LRUStoreCache(self._zarr_store, max_size=cache_size)
38003800
self._zarr_group = zarr.open(self._zarr_lru_cache)
3801-
if not isinstance(self._zarr_group, zarr.hierarchy.Group):
3801+
if not isinstance(self._zarr_group, zarr.hierarchy.Group): # pragma: no cover
38023802
group = zarr.hierarchy.group()
38033803
group[0] = self._zarr_group
38043804
self._zarr_group = group
@@ -3904,7 +3904,7 @@ def _info(self: FsspecJsonWSIReader) -> WSIMeta:
39043904

39053905
filetype_params = {}
39063906
# Check for "multiscales" and extract metadata
3907-
if "multiscales" in zarr_attrs:
3907+
if "multiscales" in zarr_attrs: # pragma: no cover
39083908
multiscales = zarr_attrs[
39093909
"multiscales"
39103910
] # List of multiscale metadata entries

0 commit comments

Comments
 (0)