From e55882deca1e2e9868ff4956a6fc2d056d401c02 Mon Sep 17 00:00:00 2001 From: Lindsey Gray Date: Sat, 18 Feb 2023 11:20:56 -0600 Subject: [PATCH] add ttree title to __doc__ of top level record Co-authored-by: Jim Pivarski --- src/uproot/_dask.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uproot/_dask.py b/src/uproot/_dask.py index 10da7a759..187eb3ea0 100644 --- a/src/uproot/_dask.py +++ b/src/uproot/_dask.py @@ -774,7 +774,9 @@ def _get_meta_array( content_form = content_form.copy(parameters={"__doc__": branch.title}) contents.append(content_form) - form = awkward.forms.RecordForm(contents, common_keys) + parameters = {"__doc__": ttree.title} if ak_add_doc else None + + form = awkward.forms.RecordForm(contents, common_keys, parameters=parameters) if form_mapping is not None: form = form_mapping(form)