Skip to content

WIP: Update pctpairprotons to support more uproot versions#74

Open
acoussat wants to merge 3 commits intoRTKConsortium:mainfrom
acoussat:pctpairprotons-uproot
Open

WIP: Update pctpairprotons to support more uproot versions#74
acoussat wants to merge 3 commits intoRTKConsortium:mainfrom
acoussat:pctpairprotons-uproot

Conversation

@acoussat
Copy link
Copy Markdown
Collaborator

It seems that depending on Uproot's version, the arrays method sometimes returns a Python dict, and sometimes a numpy.ndarray. This PR generalizes the code to handle both cases.

As a first attempt to avoid future regressions, I have also added a small test that runs the pctpairprotons applications. I still need to check if it runs correctly on the CI.

I have also updated the documentation with a paragraph about the installation of Uproot, but I am wondering if Uproot shouldn't become a mandatory dependency of PCT as it is very unlikely that anyone will run PCT without using pctpairprotons.

Let me know if any part of the above should be in a separate PR.

This PR is still a WIP because it needs further testing (from Laura, but also from me).

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.

1 participant