Skip to content

feat: Add custom interpretation API #1434

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrzimu
Copy link

@mrzimu mrzimu commented May 9, 2025

This is an idea/design of making uproot able to read custom classes, also allowing users to customize the reading process in uproot.

A summary of the design is:

  • Add a registration mechanism for user-defined custom interpretation.
  • Add a pre-defined interpretation AsCustom, which
    • Introduces a new layer of interface Reader for converting custom classes to awkward arrays.
    • Defines a series of readers following standard ROOT streaming rules.
    • Allows users to register their own custom readers.

The full description is in dev/custom-interpretation/README.md.

Since I have limited understanding and experience on either ROOT streaming or interface design, it would be grateful if any suggestion or help is provided😄

@mrzimu mrzimu changed the title Add custom interpretation API feat: Add custom interpretation API May 9, 2025
@ianna
Copy link
Collaborator

ianna commented May 29, 2025

Here is the link to the discussion: #1424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants