Skip to content

Commit d4c2206

Browse files
committed
Remove duplicate check
1 parent c0a3a88 commit d4c2206

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/blosc2/ndarray.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,15 +1074,7 @@ def detect_aligned_chunks( # noqa: C901
10741074
start = s.start if s.start is not None else 0
10751075
stop = s.stop if s.stop is not None else shape[i]
10761076

1077-
if stop > shape[i]:
1078-
return []
1079-
10801077
chunk_size = chunks[i]
1081-
1082-
# Ensure alignment with chunk boundaries
1083-
if start % chunk_size != 0:
1084-
return []
1085-
10861078
start_idx = start // chunk_size
10871079
end_idx = math.ceil(stop / chunk_size)
10881080
start_indices.append(start_idx)

0 commit comments

Comments
 (0)