get_dtype function
(Shortest import: from brian2.core.variables import get_dtype)
-
brian2.core.variables.
get_dtype
(obj)[source]
Helper function to return the numpy.dtype
of an arbitrary object.
- Parameters
obj : object
Any object (but typically some kind of number or array).
- Returns
dtype : numpy.dtype
The type of the given object.