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 152 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 69 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 285 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 115 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 50 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 59 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 102 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 79 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 146 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 165 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 edm.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 84 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 135 of file app_utils.py.
web.app_utils.renaming |
Definition at line 20 of file app_utils.py.