Model_TH3D_v3 在 uproot4
Model_TH3D_v3 on uproot4
我正在尝试从 .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'
如您所见,该对象可从根浏览器访问并且具有边缘。
有什么想法吗?
连根拔起4
Ubuntu 20.04
vscode内幕1.52
畅达 4.9.2
python3.9
这是一个错误,由需要采用 Scikit-HEP's unified histogram protocol while not explicitly testing TH3 (3-dimensional histograms) because I didn't have any examples in scikit-hep-testdata 的界面更改引起。
你能确认 scikit-hep/uproot4#239 解决了你的问题吗?谢谢!
我正在尝试从 .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'
如您所见,该对象可从根浏览器访问并且具有边缘。
有什么想法吗? 连根拔起4 Ubuntu 20.04 vscode内幕1.52 畅达 4.9.2 python3.9
这是一个错误,由需要采用 Scikit-HEP's unified histogram protocol while not explicitly testing TH3 (3-dimensional histograms) because I didn't have any examples in scikit-hep-testdata 的界面更改引起。
你能确认 scikit-hep/uproot4#239 解决了你的问题吗?谢谢!