-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ak.flatten and ak.ravel should test for nplike.ndarray, not np.ndarray. #1340
ak.flatten and ak.ravel should test for nplike.ndarray, not np.ndarray. #1340
Conversation
Codecov Report
|
@jpivarski Not sure if this is helpful, but I did a quick grep and found a few other places in |
Do you mean these two? Actually, these are the Which cases are you talking about? |
The thing that had to be fixed here is that these arrays are coming out of a layout ( |
Sure, I might be missing the obvious here. Is it possible that a user will knowingly call |
It shouldn't be possible. The TypeTracer was created just to support Dask, though you may have found another good use for it in avoiding duplication between Content methods and Form methods. It's in a module named with an underscore—there's no way to make one without invoking private code (so not even "mid-level," really "low-level"!). A user might get one from a Dask Awkward Array's That doesn't preclude the possibility of accidents (bugs), but users aren't supposed to be able to see them. |
It looks like this is safe for me to merge (no more work to do). |
No description provided.