Physical units
Using-units
-
Generate a physical quantity by multiplying a scalar or vector value with its physical unit
-
Brian will check the consistency of operations on units and raise an error for dimensionality mismatches
-
Most Brian functions will also complain about non-specified or incorrect units
Removing-units
-
Divide the value by its unit
most of the time the recommended option because it is clear about the scale
-
Transform it to a pure numpy array in the base unit by calling
asarray()(no copy) orarray(copy) -
Directly get the unitless value of a state variable by appending an underscore to the name
Constants
The brian2.units.constants package provides a range of physical constants that can be useful for detailed biological models. Brian provides the following constants
posted on 2020-08-14 11:28 ctrlplayer 阅读(190) 评论(0) 收藏 举报
浙公网安备 33010602011771号