我正在尝试从 .root 导入 TH3 v3 文件,但收到以下错误消息:
----> 3 a=fileRCL[filename].to_numpy()
~/anaconda3/lib/python3.8/site-packages/uproot/behaviors/TH3.py in to_numpy(self, flow, dd)
100 """
101 values = self.values(flow=flow)
--> 102 xedges = self.edges(0)
103 yedges = self.edges(1)
104 zedges = self.edges(2)
AttributeError: 'Model_TH3D_v3' object has no attribute 'edges'
如您所见,该对象可从根浏览器访问并具有边缘。
任何想法?uproot4 Ubuntu 20.04 vscode Insider 1.52 conda 4.9.2 python 3.9