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:
NotImplementedErrorIf dtype is not int, float, str, or list.
TypeErrorIf variable var is not of type and stop is True.