check_input_params¶
-
sdss_catl_utils.mocks_manager.catl_utils.check_input_params(input_var, var_name, check_type='type')[source] [edit on github]¶ Checks the type and/or values for different variables.
Parameters: - input_var :
int,float,bool,str Input variable to be evaluated.
- var_name :
str Name of the input parameter being evaluated. This variable name must correspond to one of the keys in the
typeorvalsdictionaries.- check_type : {
type,vals}str Type of check to perform. This variable is set to
typeby default.- Options:
type: It checks for thetypeofinput_var.vals: It checks for thevalueofinput_var.
Raises: - SDSSCatlUtils_Error : Exception from
SDSSCatlUtils_Error Program exception if input parameters are
notaccepted.
- input_var :