| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Thanks @mtsokol. This looks pretty good to me. One idea to consider: would it make sense to move what is now in array_utils.py to _array_utils_impl.py and make the content of a new array_utils.py only this:
from ._array_utils_impl import (
byte_bounds,
normalize_axis_index,
normalize_axis_tuple,
)That would make it pretty much bullet-proof again more accidental leaking in of stray objects.
Sorry, something went wrong.
|
Also, as we just discussed, these are the first time we expose normalize_axis_index and normalize_axis_tuple as public API, so they should show up in the html docs after this PR. |
Sorry, something went wrong.
@rgommers Sure, I added these two functions to routines.other.rst file. |
Sorry, something went wrong.
|
Two questions:
|
Sorry, something went wrong.
It looks like joblib uses np.byte_bounds in two places and one np.NaN that has already been removed. I will created a PR to address it: joblib/joblib#1501
Sure! I sent a message to the mailing list. |
Sorry, something went wrong.
|
Given this adds a new public name to the API let's let this sit for a few more days to gather comments. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM now. Everyone's comments have been addressed, and the email to the mailing list didn't get replies. So I think we're good here. I suggest we merge this in a day or two unless there are new comments.
Sorry, something went wrong.
In it goes. Thanks @mtsokol. |
Sorry, something went wrong.
|
Adding here that the .. versionadded:: 1.13.0 in the normalize_axis_* functions took me a while to figure out, since np.lib.array_utils didn't exist until 2.0 🙃 |
Sorry, something went wrong.
|
FWIW, the versionadded 1.13.0 are now deleted because it is uninterestingly ancient history anyway ;). |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Relevant issues #24507 and #24166
Hi @rgommers @ngoldbaum,
This PR adds lib.array_utils module as as public namespace which creates only local namespace.
Initially it hosts three functions: