本文整理汇总了Python中vizgrimoire.report.Report.get_all_studies方法的典型用法代码示例。如果您正苦于以下问题:Python Report.get_all_studies方法的具体用法?Python Report.get_all_studies怎么用?Python Report.get_all_studies使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vizgrimoire.report.Report
的用法示例。
在下文中一共展示了Report.get_all_studies方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print
# 需要导入模块: from vizgrimoire.report import Report [as 别名]
# 或者: from vizgrimoire.report.Report import get_all_studies [as 别名]
logging.error("Data source not found " + opts.data_source)
dss = []
total_metrics = 0
total_studies = 0
# Metrics
for ds in dss:
print("\nGetting metrics for " + ds.get_name())
metrics_set = ds.get_metrics_set(ds)
for metrics in metrics_set:
print "->" + metrics.get_definition()['name']
total_metrics += 1
if opts.list is None:
agg = metrics.get_agg()
if agg is not None: print(agg)
evol = metrics.get_ts()
# if evol is not None: print(evol)
# Studies
studies = Report.get_all_studies()
for study in studies:
obj = study(None, None)
study_def = obj.get_definition()
print "New study: " + obj.name
total_studies += 1
print("\nTotal metrics: " + str(total_metrics))
print("Total studies: " + str(total_studies))