Skip to main content

从 PyROOT 脚本生成 HTML 报告的简单包

项目描述

根报告

使用 Cern ROOT 脚本创建 HTML 报告的简单 python 包。

例子

from root_report import Report 
import ROOT

ROOT.SetBatch(1) 

report = Report ( "name_of_the_report", "/some/browser-accessible/path/" ) 
report.outputTitle ( "Title of the Report" )

f1 = ROOT.TF1 ( "parab", "x**2", -1, 1)
f1.Draw()

report.outputCanvas ( "figureIdentifier" ) 
report << "Some <B>HTML</B> description here. " << report.br 

report.close() 

下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

内置发行版

root_report-0.1.7-py3-none-any.whl (13.0 kB 查看哈希

已上传 py3

root_report-0.1.7-py2-none-any.whl (13.0 kB 查看哈希

已上传 py2