You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromservicex_analysis_utilsimportget_structureDS= {"sample1": "user.mtost:user.mtost.all.Mar11"}
ak_type=get_structure(DS, array_out=True)
rec=ak_type["sample1"].content#get RecordType# Find index of reco tree and runNumber branchreco_idx=rec.fields.index("reco")
branch_idx=rec.contents[reco_idx].fields.index("runNumber")
print("Type for branch 'runNumber':", rec.contents[reco_idx].contents[branch_idx])
Having a dummy array with the correct structure might be more intuitive for users.