I'm trying to make a few different file backed array-like objects. However, I find myself struggling to get all the indexing operations right.
Is there a collection of utilities that answer questions like: 1. Given a shape, and key that would be valid in numpy, what is the resulting shape. 2. Given a key, is it a fancy index key (I just don't want to support this use case). 3. Given a key, can you "expand" the of the key so that it matches my input shape? 4. Can you help me handle keys with `None` in them as an "np.newindex"? I feel like dask, zarr, xarray would have all had to use functions like these, I'm just wondering if there was any reconciliation of this kind of functionality since the development of various `__array__` NEPs. Best, Mark
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com