assert_dtype_int

assert_dtype_int(input_var, message='Input must be integer.')[source]

Generate error if dtype is not int.

Parameters
  • input_var (ndarray) – Input variable to be tested.

  • message (str) – Error message to be displayed.

Raises

AssertionError – If input_var is not of type int.