Skip to content

How to understand events, objects, and numbers in an awkward array? #1463

Discussion options

You must be logged in to vote

When you're posting on GitHub (which uses GitHub Flavoured Markdown), you can use triple backticks ``` to embed entire blocks of code!

The error that your seeing when executing

array = ak.zip(
    {
        "muon_pt": [[1, 2, 3], [4, 5], [6]],
        "muon_eta": [[1, 2, 3], [4, 5], [6]],
        "muon_phi": [[1, 2, 3], [4, 5], [6]],
        "muon_E": [[1, 2, 3], [4, 5], [6]],
        "electron_pt": [[1, 2], [3], [4]],
        "electron_eta": [[1, 2], [3], [4]],
        "electron_phi": [[1, 2], [3], [4]],
        "electron_E": [[1, 2], [3], [4]],
    }
)

occurs when Awkward tries to form a record of "muon_pt", "muon_eta", ..., "electron_E" at the deepest level of nesting. This is the defa…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ZhenxuanZhang-Jensen
Comment options

@agoose77
Comment options

agoose77 May 6, 2022
Collaborator

@ZhenxuanZhang-Jensen
Comment options

Answer selected by ZhenxuanZhang-Jensen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants