pizzarr
pizzarr copied to clipboard
Orthogonal selection
Summary:
OrthogonalIndexerandIntArrayDimIndexerOrderclass fromzarr-pythonIntDimIndexer(may need some work)- Future work:
BoolArrayDimIndexer - update normalization for integer vectors
- add methods for
intandzb_int(are these needed?), currently implemented but not used ... zero_based_to_one_basedfunction now also applies to none slice selections[.ZarrArraytriggers orthogonal selection only (or should it?)- add tests for orthogonal selection
Relevant Issues: #107 #104 #97 #43
Here it is, tested a bunch of times but who knows :D Let me know what you guys think and lets review if you want.
Commented out exported functions under int.R to let pkgdown do its thing ... although I am not sure if int() or zb_int() are indeed needed.
I had to do some internal changes to is_integer and is_integer_vec 3fa0a47d82aabbfcf8d585a3f51f5ca0809b8277
The previous implementation of is_integer was not behaving as the one in zarr-python. This is because R also returns TRUE for full integer vectors when is_integer is called, thus one should check the length too.
Thus now the function checks the length as well, similar modifications are done to is_integer_vec as well. Now the Indexer classes are more comparable to the zarr-python.
pkgdown should be fixed now
Hi @Artur-man this is looking great, thank you for the tests and the comments and the references back to the python code.
I just opened https://github.com/Artur-man/pizzarr/pull/1, can you merge that into your branch, and then I will merge this PR?
just did!!