-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Variety of issues raised by an ATLAS xAOD. (#124)
* Fix version encoding/decoding. * Allow streamer base version to be -1 (meaning None). * Parse the 'long long' rules before the 'long' rules (because you want greedy matches). * AsGrouped subbranches can have missing interpretations. * Handle zero-leaf branches. * Logic for handling AsGrouped. * Implemented AsGrouped. * Strip extraneous spaces from classnames so that the lookup matches.
- Loading branch information
Showing
10 changed files
with
263 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/master/LICENSE | ||
|
||
from __future__ import absolute_import | ||
|
||
import pytest | ||
import skhep_testdata | ||
|
||
import uproot4 | ||
|
||
|
||
def test_version(): | ||
assert uproot4.classname_decode( | ||
uproot4.classname_encode("xAOD::MissingETAuxAssociationMap_v2") | ||
) == ("xAOD::MissingETAuxAssociationMap_v2", None) | ||
assert uproot4.classname_decode( | ||
uproot4.classname_encode("xAOD::MissingETAuxAssociationMap_v2", 9) | ||
) == ("xAOD::MissingETAuxAssociationMap_v2", 9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.