dimensions_and_type_from_string function
(Shortest import: from brian2.equations.equations import dimensions_and_type_from_string)
- brian2.equations.equations.dimensions_and_type_from_string(unit_string)[source]
Returns the physical dimensions that results from evaluating a string like “siemens / metre ** 2”, allowing for the special string “1” to signify dimensionless units, the string “boolean” for a boolean and “integer” for an integer variable.