Check all lists along one dimension are same length.
(combined_tile_ids)
| 200 | |
| 201 | |
| 202 | def _check_shape_tile_ids(combined_tile_ids): |
| 203 | """Check all lists along one dimension are same length.""" |
| 204 | tile_ids, nesting_depths = _check_dimension_depth_tile_ids(combined_tile_ids) |
| 205 | for dim in range(nesting_depths[0]): |
| 206 | indices_along_dim = [tile_id[dim] for tile_id in tile_ids] |
| 207 | occurrences = Counter(indices_along_dim) |
| 208 | if len(set(occurrences.values())) != 1: |
| 209 | raise ValueError( |
| 210 | "The supplied objects do not form a hypercube " |
| 211 | "because sub-lists do not have consistent " |
| 212 | f"lengths along dimension {dim}" |
| 213 | ) |
| 214 | |
| 215 | |
| 216 | def _combine_nd( |
searching dependent graphs…