It's probably worth checking out rootpy. Maybe not totally mature yet, but it's a step in the right direction.
Yes, rootpy is built on top of PyROOT, but with some additional features:
it emphasizes a pythonic interface and hides some of the ugliness of ROOT;
it integrates with matlibplot, which has a larger development community, and a greater presence on SO, not to mention better looking plots;
it allows conversion to HDF5 files, which will allow you to share data with people who can't take the time to install the monolithic ROOT package.
Unfortunately, as long as you're working with something built on top of CINT (which PyROOT is), you'll still have to deal with one of the ugliest parts of ROOT.
发布评论
评论(3)
可能值得查看 rootpy。 也许还没有完全成熟,但这是朝着正确方向迈出的一步。
是的,rootpy 构建在 PyROOT 之上,但具有一些附加功能
不幸的是,只要您正在使用构建在 CINT 之上的东西(其中PyROOT 是),您仍然需要处理 ROOT 中最丑陋的部分。
如果您厌倦了摸索 PyROOT,另一种选择是使用 将 ROOT 直接转换为HDF5
It's probably worth checking out rootpy. Maybe not totally mature yet, but it's a step in the right direction.
Yes, rootpy is built on top of PyROOT, but with some additional features:
Unfortunately, as long as you're working with something built on top of CINT (which PyROOT is), you'll still have to deal with one of the ugliest parts of ROOT.
The other option, if you're sick of fumbling with PyROOT, is to use one of the packages that converts ROOT directly to HDF5
我不久前写了一个 minuit 包装器(在我的 1 次经验样本中,ROOT 的 minuit 似乎比 pyminuit 更强大,而且我更喜欢 ROOT Minuit 输出)
https://github.com/piti118/RTMinuit
具有numpy根文件读取能力
https: //github.com/piti118/root_numpy
以及基于 RTMinuit 和 numpy 的不太完善的拟合库和玩具生成等
https://github.com/piti118/dist_fit
教程和帮助都在包中给出
I wrote a minuit wrapper a while back(In my sample of 1 experience, ROOT's minuit seems more robust than pyminuit and I like ROOT Minuit output more)
https://github.com/piti118/RTMinuit
With numpy root file reading capability
https://github.com/piti118/root_numpy
And not so polished fitting library and toy generation etc. based on RTMinuit and numpy
https://github.com/piti118/dist_fit
Tutorials and help are all given in the package
您知道 pyROOT,对吧?
我自己从未尝试过,所以我不知道它如何满足您的需求。
You are aware of pyROOT, right?
Never tried it myself, so I don't know how it might stack up against your needs.