CoffeaTeam / coffea

Basic tools and wrappers for enabling not-too-alien syntax when running columnar Collider HEP analysis.
https://coffeateam.github.io/coffea/
BSD 3-Clause "New" or "Revised" License
128 stars 123 forks source link

Auto Schema fails when single item has an underscore (grouping of one) #610

Open gordonwatts opened 2 years ago

gordonwatts commented 2 years ago

Describe the bug The auto schema fails to work properly if you try to create a group of one.

To Reproduce The fix already exists, but no partner test yet:

Steps to reproduce the behavior: See this example notebook for the failure. Specifically, look at the met_pt dictionary key in input line 3.

Expected behavior No crash.

gordonwatts commented 2 years ago

This should be assigned to me.

nsmith- commented 2 years ago

Related to this, do you think it would make sense to only add a dimension to the jagged array for the first underscore and none after?