def data_set_ranking_service(request):
domain = request.matchdict.get('domain')
analytic_type = request.matchdict.get('analytic_type')
interpretation = request.matchdict.get('interpretation')
log.info('Ranking data sets with\ndomain: {}\nanalytic type: {}\ninterpretation: {}'.format(domain, analytic_type, interpretation))
dm = DataMatcher(request.registry.settings['MODELERLOCATION'])
ranking = dm.dataSetRanking(domain, analytic_type, interpretation)
log.info('Data set ranking completed')
log.info(ranking)
if not ranking:
raise exc.HTTPInternalServerError(explanation="There were no data sets found in the database.")
return ranking
评论列表
文章目录