feat: Optional support to add c++ typenames to parameters with ak_add_typename in uproot.dask #1375
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Optional support to add c++ typenames to parameters with ak_add_typename in uproot.dask
Necessity:
Access to C++ typename info for each tree branch is essential in building COFFEA schema for files generated with EDM4HEP.
Similar to how
ak_add_doc
is used to add the__doc__
parameter to forms,ak_add_typename
could be used to add the C++ typename of the branch in parameters.This is an attempt to solve this feature request #1369 posted by @ianna in response to the discussions among @jpivarski @ianna @davidlange6 and @prayagyadav
Outcome/Example/Expected output:
Bash:
Python:
Output:
Here is the live link to the notebook for the above example, where one can run these cells in real-time.
The bulk of the idea for these code changes was given by @davidlange6