Skip to content
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

Demo code for TruthParticles fails #206

Open
gordonwatts opened this issue Feb 1, 2023 · 1 comment
Open

Demo code for TruthParticles fails #206

gordonwatts opened this issue Feb 1, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@gordonwatts
Copy link
Member

This may well be a problem in the type info sent down the wire, not here. But this is straight from the xaod_usage and I'm seeing:

all_particles = (ds_dijet
                 .SelectMany(lambda e: e.TruthParticles("TruthParticles"))
                 .Where(lambda tp: (tp.pt() / 1000) > 10)
                 .Select(lambda tp: {
                         'pt': tp.pt() / 1000.0,
                         'pdgId': abs(tp.pdgId()),
                 })
                 .AsAwkwardArray()
                 .value())

And I'm seeing two errors:

Method pdgId not found on object <class 'func_adl_servicex_xaodr21.xAOD.jet_v1.Jet_v1'>

And a crash (probably during C++ compilation).

@gordonwatts gordonwatts added the bug Something isn't working label Feb 1, 2023
@gordonwatts gordonwatts self-assigned this Feb 1, 2023
@gordonwatts
Copy link
Member Author

The "jet_v1" error I can't reproduce - even where it first happened.

The basic crash doesn't happen locally - only when running on the UChicago AF. Even with what I think are the same package versions. So created a small sample script and waiting now for someone from UChicago to capture the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant