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
type
orvals
dictionaries.- check_type : {
type
,vals
}str
Type of check to perform. This variable is set to
type
by default.- Options:
type
: It checks for thetype
ofinput_var
.vals
: It checks for thevalue
ofinput_var
.
Raises: - SDSSCatlUtils_Error : Exception from
SDSSCatlUtils_Error
Program exception if input parameters are
not
accepted.
- input_var :