attr_check#
- compliance_checker.base.attr_check(kvp, ds, priority, ret_val, gname=None, var_name=None)[source]#
Handles attribute checks for simple presence of an attribute, presence of one of several attributes, and passing a validation function. Returns a status along with an error message in the event of a failure. Mutates ret_val parameter
- Parameters:
l (tuple(str, func) or str) – the attribute being checked
:param netCDF4 dataset ds : dataset being checked :param int priority : priority level of check :param list ret_val : result to be returned :param str or None gname : group name assigned to a group of attribute Results :param str or None var_name : name of the variable which contains this attribute