get_dtype function¶
(Shortest import: from brian2.groups.group import get_dtype)
- brian2.groups.group.get_dtype(equation, dtype=None)[source]¶
Helper function to interpret the
dtypekeyword argument inNeuronGroupetc.- Parameters:
equation :
SingleEquationThe equation for which a dtype should be returned
dtype :
dtypeor dict, optionalEither the
dtypeto be used as a default dtype for all float variables (instead of the core.default_float_dtype preference) or a dictionary stating thedtypefor some variables; all other variables will use the preference default- Returns:
d :
dtypeThe dtype for the variable defined in
equation