Functions | |
def | db_list_with_releases (path='.') |
def | get_dataset_name (name) |
def | get_directory_summary_stats (c, url_args, file_id, threshold) |
def | get_folders (c, file_id, filename, dir_id, threshold) |
def | get_img_path (filename, path) |
def | get_img_url (path, f1, f2=None, w=250, h=250) |
def | get_percentage (successes, nulls, fails) |
def | get_release (name) |
def | get_release_list (c) |
def | get_release_summary_stats (c, release_title, st_test, threshold=1e-5) |
def | get_stats (c, threshold, dir_ranges) |
def | join_ranges (ranges, elem) |
Variables | |
renaming | |
def web.app_utils.db_list_with_releases | ( | path = '.' | ) |
Returns available database list and their releases.
Definition at line 150 of file app_utils.py.
References web.app_utils.get_release_list(), and join().
Referenced by web.dbfile2html.dbfile2html(), and web.browse_db.BrowseDB.default().
def web.app_utils.get_dataset_name | ( | name | ) |
Returns extracted dataset name from the given ROOT filename.
Definition at line 67 of file app_utils.py.
References createfilelist.int, join(), and harvestTrackValidationPlots.str.
Referenced by web.app_utils.get_directory_summary_stats(), and web.app_utils.get_folders().
def web.app_utils.get_directory_summary_stats | ( | c, | |
url_args, | |||
file_id, | |||
threshold | |||
) |
Returns context for ``directory_summary.html`` template.
Definition at line 283 of file app_utils.py.
References cmsPerfStripChart.dict, web.app_utils.get_dataset_name(), web.app_utils.get_img_url(), web.app_utils.get_percentage(), web.app_utils.get_release(), web.app_utils.get_stats(), and join().
Referenced by web.dbfile2html.dbfile2html(), and web.browse_db.BrowseDB.default().
def web.app_utils.get_folders | ( | c, | |
file_id, | |||
filename, | |||
dir_id, | |||
threshold | |||
) |
Returns file folder stats for one "summary table" column.
Definition at line 113 of file app_utils.py.
References mps_alisetup.append, cmsPerfStripChart.dict, web.app_utils.get_dataset_name(), and web.app_utils.get_stats().
Referenced by web.app_utils.get_release_summary_stats().
def web.app_utils.get_img_path | ( | filename, | |
path | |||
) |
Returns image path for https://cmsweb.cern.ch/dqm histogram visualisation service
Definition at line 48 of file app_utils.py.
References createfilelist.int.
Referenced by web.app_utils.get_img_url().
Returns full URL of histogram (or histogram overlay) image for https://cmsweb.cern.ch/dqm visualisation service.
Definition at line 57 of file app_utils.py.
References web.app_utils.get_img_path().
Referenced by web.app_utils.get_directory_summary_stats().
def web.app_utils.get_percentage | ( | successes, | |
nulls, | |||
fails | |||
) |
Converts integers ``successes``, ``nulls`` and ``fails`` to percents.
Definition at line 100 of file app_utils.py.
Referenced by web.app_utils.get_directory_summary_stats(), and web.app_utils.get_release_summary_stats().
def web.app_utils.get_release | ( | name | ) |
Returns extracted release from the given ROOT filename.
Definition at line 77 of file app_utils.py.
Referenced by web.app_utils.get_directory_summary_stats().
def web.app_utils.get_release_list | ( | c | ) |
Returns all ``ReleaseComparisons`` found on database.
Definition at line 144 of file app_utils.py.
Referenced by web.app_utils.db_list_with_releases(), and web.browse_db.BrowseDB.default().
def web.app_utils.get_release_summary_stats | ( | c, | |
release_title, | |||
st_test, | |||
threshold = 1e-5 |
|||
) |
Returns context for ``release_summary.html`` template.
Definition at line 163 of file app_utils.py.
References mps_alisetup.append, cmsPerfStripChart.dict, objects.autophobj.float, web.app_utils.get_folders(), web.app_utils.get_percentage(), and web.app_utils.get_stats().
Referenced by web.dbfile2html.dbfile2html(), and web.browse_db.BrowseDB.default().
def web.app_utils.get_stats | ( | c, | |
threshold, | |||
dir_ranges | |||
) |
Returns ``successes``, ``fails``, ``nulls`` for the given dir_ranges.
Definition at line 82 of file app_utils.py.
Referenced by web.app_utils.get_directory_summary_stats(), web.app_utils.get_folders(), and web.app_utils.get_release_summary_stats().
def web.app_utils.join_ranges | ( | ranges, | |
elem | |||
) |
To do less DB calls, joins [(from_id, till_id), ...] ranges.
Definition at line 133 of file app_utils.py.
web.app_utils.renaming |
Definition at line 18 of file app_utils.py.