Functions | |
def | db_list_with_releases |
def | get_dataset_name |
def | get_directory_summary_stats |
def | get_folders |
def | get_img_path |
def | get_img_url |
def | get_percentage |
def | get_release |
def | get_release_list |
def | get_release_summary_stats |
def | get_stats |
def | join_ranges |
Variables | |
dictionary | renaming |
def web.app_utils.db_list_with_releases | ( | path = '.' | ) |
Returns available database list and their releases.
Definition at line 149 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 66 of file app_utils.py.
References join().
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 282 of file app_utils.py.
References python.multivaluedict.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 112 of file app_utils.py.
References python.multivaluedict.append(), python.multivaluedict.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 47 of file app_utils.py.
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 56 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 99 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 76 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 143 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 162 of file app_utils.py.
References python.multivaluedict.append(), python.multivaluedict.dict, 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 81 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 132 of file app_utils.py.
dictionary web.app_utils.renaming |
Definition at line 17 of file app_utils.py.