Skip to content

Support an option to prefix all field strings with provided value #121

@YeungOnion

Description

@YeungOnion

EDIT: modify title of feature request and modify first post to specify updated request
feature request more clear in reply to this post.

Original post

I suppose this is formally a feature request, but it's certainly unexpected that this wouldn't work for ROOT files since we're using uproot.

Issue seems like it's right at the start of the click entry point cli.py:L115 where the target string is loaded with click.open_file(infile) which doesn't handle the colons. Can someone check this regex if I've missed any useful edge cases for the suffix :path/to/objects?

(:[^/\s]+?(\/[^/\s]+)*)$

willing to accept alternatives as well, as this would require importing re.search, perhaps rsplit(':',1) could suffice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions