nigsp.utils.change_var_type¶
- nigsp.utils.change_var_type(var, dtype, varname='an input variable', stop=True, silent=False)[source]¶
Make sure var is of type dtype.
- Parameters:
- Returns:
- Raises:
NotImplementedError
If dtype is not int, float, str, or list.
TypeError
If variable var is not of type and stop is True.