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

Can't read a branch III #1139

Open
ivukotic opened this issue Feb 22, 2024 · 0 comments
Open

Can't read a branch III #1139

ivukotic opened this issue Feb 22, 2024 · 0 comments
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged

Comments

@ivukotic
Copy link

Here the simplest reproducible example:

import uproot
print(uproot.__version__)
fn='root://xcache.af.uchicago.edu:1094//'
fn+='root://dcgftp.usatlas.bnl.gov:1094//pnfs/usatlas.bnl.gov/LOCALGROUPDISK/rucio/data18_13TeV/04/9a/DAOD_PHYSLITE.34857549._000001.pool.root.1'
with uproot.open(fn) as f:
    tree=f['CollectionTree;1']
    a=tree["METAssoc_AnalysisMETAux./METAssoc_AnalysisMETAux.xAOD::AuxContainerBase"].array()

here the result:

---------------------------------------------------------------------------
UnknownInterpretation                     Traceback (most recent call last)
Cell In[5], line 7
      5 with uproot.open(fn) as f:
      6     tree=f['CollectionTree;1']
----> 7     a=tree["METAssoc_AnalysisMETAux./METAssoc_AnalysisMETAux.xAOD::AuxContainerBase"].array()

File /analysis/uproot5/src/uproot/behaviors/TBranch.py:1786, in TBranch.array(self, interpretation, entry_start, entry_stop, decompression_executor, interpretation_executor, array_cache, library, ak_add_doc)
   1784 expression_context = []
   1785 branchid_interpretation = {}
-> 1786 _regularize_branchname(
   1787     self,
   1788     self.name,
   1789     self,
   1790     interpretation,
   1791     get_from_cache,
   1792     arrays,
   1793     expression_context,
   1794     branchid_interpretation,
   1795     True,
   1796     False,
   1797 )
   1799 ranges_or_baskets = []
   1800 checked = set()

File /analysis/uproot5/src/uproot/behaviors/TBranch.py:2705, in _regularize_branchname(hasbranches, branchname, branch, interpretation, get_from_cache, arrays, expression_context, branchid_interpretation, is_primary, is_cut)
   2693 def _regularize_branchname(
   2694     hasbranches,
   2695     branchname,
   (...)
   2703     is_cut,
   2704 ):
-> 2705     got = get_from_cache(branchname, interpretation)
   2706     if got is not None:
   2707         arrays[branch.cache_key] = got

File /analysis/uproot5/src/uproot/behaviors/TBranch.py:1774, in TBranch.array.<locals>.get_from_cache(branchname, interpretation)
   1769 def get_from_cache(branchname, interpretation):
   1770     if array_cache is not None:
   1771         cache_key = "{}:{}:{}:{}-{}:{}".format(
   1772             self.cache_key,
   1773             branchname,
-> 1774             interpretation.cache_key,
   1775             entry_start,
   1776             entry_stop,
   1777             library.name,
   1778         )
   1779         return array_cache.get(cache_key)
   1780     else:

File /analysis/uproot5/src/uproot/interpretation/identify.py:1165, in UnknownInterpretation.cache_key(self)
   1163 @property
   1164 def cache_key(self):
-> 1165     raise self

File /analysis/uproot5/src/uproot/behaviors/TBranch.py:1929, in TBranch.interpretation(self)
   1927 if self._interpretation is None:
   1928     try:
-> 1929         self._interpretation = uproot.interpretation.identify.interpretation_of(
   1930             self, {}
   1931         )
   1932     except uproot.interpretation.identify.UnknownInterpretation as err:
   1933         self._interpretation = err

File /analysis/uproot5/src/uproot/interpretation/identify.py:507, in interpretation_of(branch, context, simplify)
    504         else:
    505             return out
--> 507 raise UnknownInterpretation(
    508     "none of the rules matched",
    509     branch.file.file_path,
    510     branch.object_path,
    511 )

UnknownInterpretation: none of the rules matched
in file root://xcache.af.uchicago.edu:1094//root://dcgftp.usatlas.bnl.gov:1094//pnfs/usatlas.bnl.gov/LOCALGROUPDISK/rucio/data18_13TeV/04/9a/DAOD_PHYSLITE.34857549._000001.pool.root.1
in object /CollectionTree;1:METAssoc_AnalysisMETAux./METAssoc_AnalysisMETAux.xAOD::AuxContainerBase
@ivukotic ivukotic added the bug (unverified) The problem described would be a bug, but needs to be triaged label Feb 22, 2024
@jpivarski jpivarski added this to Important in Finalization Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged
Projects
Finalization
Deserialization
Development

No branches or pull requests

1 participant