Repository navigation
Commit 8c192b2
committed
refactor(chunk-grids): drop dead ndarray branch from is_regular_1d
Since normalize_chunks_nd returns ChunkGrid dimensions instead of int64
arrays, is_regular_1d only ever receives plain Python sequences; the
vectorized numpy path was unreachable in production code. Remove it and
narrow the signatures of is_regular_1d / is_regular_nd to Sequence[int].
Assisted-by: ClaudeCode:claude-fable-51 parent 220d630 commit 8c192b2
2 files changed
Lines changed: 3 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| 337 | + | |
340 | 338 | | |
341 | 339 | | |
342 | 340 | | |
| |||
346 | 344 | | |
347 | 345 | | |
348 | 346 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | 347 | | |
353 | 348 | | |
354 | 349 | | |
355 | 350 | | |
356 | 351 | | |
357 | 352 | | |
358 | 353 | | |
359 | | - | |
360 | | - | |
361 | | - | |
| 354 | + | |
362 | 355 | | |
363 | 356 | | |
364 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 112 | | |
117 | 113 | | |
118 | 114 | | |
| |||
129 | 125 | | |
130 | 126 | | |
131 | 127 | | |
132 | | - | |
133 | | - | |
| 128 | + | |
134 | 129 | | |
135 | 130 | | |
136 | 131 | | |
137 | 132 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 133 | | |
146 | 134 | | |
147 | 135 | | |
| |||
156 | 144 | | |
157 | 145 | | |
158 | 146 | | |
159 | | - | |
160 | | - | |
161 | 147 | | |
162 | 148 | | |
163 | 149 | | |
| |||
0 commit comments