brainpy.tools.checking.check_integer#

brainpy.tools.checking.check_integer(value, name=None, min_bound=None, max_bound=None, allow_none=False)[source]#

Check integer type.

Parameters
  • value (int, optional) –

  • name (optional, str) –

  • min_bound (optional, int) – The allowed minimum value.

  • max_bound (optional, int) – The allowed maximum value.

  • allow_none (bool) – Whether allow the value is None.