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 151 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 68 of file app_utils.py.
References createfilelist.int, join(), and 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 284 of file app_utils.py.
References 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 114 of file app_utils.py.
References mps_setup.append, 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 49 of file app_utils.py.
References createfilelist.int.
Referenced by web.app_utils.get_img_url().
def web.app_utils.get_img_url | ( | path, | |
f1, | |||
f2 = None , |
|||
w = 250 , |
|||
h = 250 |
|||
) |
Returns full URL of histogram (or histogram overlay) image for https://cmsweb.cern.ch/dqm visualisation service.
Definition at line 58 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 101 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 78 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 145 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 164 of file app_utils.py.
References mps_setup.append, dqmMemoryStats.float, web.app_utils.get_folders(), web.app_utils.get_percentage(), web.app_utils.get_stats(), and print().
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 83 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 134 of file app_utils.py.
web.app_utils.renaming |
Definition at line 19 of file app_utils.py.