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 or vals dictionaries.

check_type : {type, vals} str

Type of check to perform. This variable is set to type by default.

Options:
  • type: It checks for the type of input_var.
  • vals: It checks for the value of input_var.
Raises:
SDSSCatlUtils_Error : Exception from SDSSCatlUtils_Error

Program exception if input parameters are not accepted.