Skip to content

Commit

Permalink
fix: call correct N5CacheInfo methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Aug 29, 2023
1 parent 3e0cc56 commit 215e72d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public boolean isDataset(final String normalPathKey, final String normalCacheKey
}
else if (cacheInfo == emptyCacheInfo || cacheInfo.isGroup())
return cacheInfo.isDataset();
else if (!cacheInfo.attributesCache().containsKey(ZarrKeyValueReader.ZARRAY_FILE)) {
else if (!cacheInfo.containsKey(ZarrKeyValueReader.ZARRAY_FILE)) {
// if the cache info is not tracking .zarray, then we don't yet know
// if there is a dataset at this path key
updateCacheIsDataset(cacheInfo, container.isDatasetFromContainer(normalPathKey));
Expand All @@ -105,7 +105,7 @@ public boolean isGroup(final String normalPathKey, final String normalCacheKey)
}
else if (cacheInfo == emptyCacheInfo || cacheInfo.isDataset())
return cacheInfo.isGroup();
else if (!cacheInfo.attributesCache().containsKey(ZarrKeyValueReader.ZGROUP_FILE)) {
else if (!cacheInfo.containsKey(ZarrKeyValueReader.ZGROUP_FILE)) {
// if the cache info is not tracking .zgroup, then we don't yet know
// if there is a group at this path key
updateCacheIsGroup(cacheInfo, container.isGroupFromContainer(normalPathKey));
Expand Down

0 comments on commit 215e72d

Please sign in to comment.