Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Fixing bugs for HATS. #493

Merged
merged 9 commits into from
Jun 4, 2020
Merged

Fixing bugs for HATS. #493

merged 9 commits into from
Jun 4, 2020

Conversation

jpivarski
Copy link
Member

The first of these is a long-held oversight: Uproot has never been able to read @sbinet's small-evnt-tree-nosplit.root. Unsplit objects are much harder, so maybe this was justified in the beginning, but now I wanted to show the same example in split and unsplit form, for which small-evnt-tree-fullsplit.root and small-evnt-tree-nosplit.root provide a good example.

The two bugs that had to be fixed were:

  • Python's l and L don't correspond to long and unsigned long; they're both 32-bits. Different platforms make similarly different interpretations. For 64-bit non-Windows, at least, the data should be deserialized as 64-bit, so we use Python's q and Q.
  • std::vector<std::string> wasn't implemented for unsplit objects. The implementation is easy.

@jpivarski jpivarski marked this pull request as ready for review June 4, 2020 18:28
@jpivarski
Copy link
Member Author

The Uproot HATS is done, so I'll close off this PR and give it a version number.

@jpivarski jpivarski merged commit 484b626 into master Jun 4, 2020
@jpivarski jpivarski deleted the jpivarski/fixing-bugs-for-hats branch June 4, 2020 18:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant