-
Notifications
You must be signed in to change notification settings - Fork 81
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
refactor: hide L3 API #1983
refactor: hide L3 API #1983
Conversation
…nto agoose77/refactor-l3-l4-split
Codecov Report
Additional details and impacted files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We talked about this on Slack while it was in development, and I am completely in favor of these changes.
refactor: move `sort`, `argsort` to `ak._do`
I made the last fixes that follow from the list of changes in #1972. In a couple of places, I think I've made the code worse - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked it over again; all is good. Now I'll merge it.
@@ -336,169 +336,6 @@ def dofunction(link, linelink, shortname, name, astfcn): | |||
dofunction(link, linelink, shortname, toplevel.name, toplevel) | |||
|
|||
|
|||
categories = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see: categories
is completely gone, now.
contiguous_self = self if self.is_contiguous else self.contiguous() | ||
contiguous_self = self.to_contiguous() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that was superfluous, considering that to_contiguous
would return self
if already contiguous.
highlevel
,behavior
arguments to theak.XXX
reducerslayout.XXX
reducerslayout._reduce
toak._do.reduce
layout.layout_equal
toContent.is_equal_to
NumpyArray
NumpyArray.maybe_to_array()
withNumpyArray.maybe_to_NumpyArray()
Content
/Content
subclass public method/propertiesContent.tolist()
(but keep high-level implementation)validity_error
toak._do.validity_error
Content.typetracer
withContent.to_typetracer(...)
Content.forget_length()
with argument toContent.to_typetracer()
ak.packed()
toak.to_packed()
(same forContent.packed()
)📚 The documentation for this PR will be available at https://awkward-array.readthedocs.io/en/agoose77-refactor-l3-l4-split/ once Read the Docs has finished building 🔨