Skip to content

Commit

Permalink
Merge pull request #478 from lgray/nice_report_names
Browse files Browse the repository at this point in the history
feat: more obvious names for report products
  • Loading branch information
lgray authored Mar 2, 2024
2 parents 3ad9b49 + 9b97239 commit 5f7a137
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/dask_awkward/lib/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,12 @@ def from_map(

if io_func_implements_report(io_func):
if cast(ImplementsReport, io_func).return_report:
res = result.map_partitions(first, meta=array_meta, output_divisions=1)
rep = result.map_partitions(second, meta=empty_typetracer())
res = result.map_partitions(
first, meta=array_meta, label=label, output_divisions=1
)
rep = result.map_partitions(
second, meta=empty_typetracer(), label=f"{label}-report"
)
return res, rep

return result
Expand Down

0 comments on commit 5f7a137

Please sign in to comment.