Skip to content

Commit

Permalink
make unproject_layout do nothing.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Jul 13, 2023
1 parent 35563a5 commit a72996c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/dask_awkward/lib/unproject_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ def _unproject_layout(form, layout, length, backend):


def unproject_layout(form: Form | None, layout: Content) -> Content:
"""Rehydrate a layout to include all parts of an original form.
"""Does nothing! Currently returns the passed in layout unchanged!
Rehydrate a layout to include all parts of an original form.
When we perform the necessary columns optimization we drop fields
that are not necessary for a computed result. Sometimes we have
Expand All @@ -401,6 +403,7 @@ def unproject_layout(form: Form | None, layout: Content) -> Content:
not appear in the projected layout will be PlaceholderArrays).
"""
if form is None:
return layout
return _unproject_layout(form, layout, layout.length, layout.backend)
return layout
# if form is None:
# return layout
# return _unproject_layout(form, layout, layout.length, layout.backend)

0 comments on commit a72996c

Please sign in to comment.