Common Types API¶
There a few NineML types are common across all layers
Document¶
Dimensions and units¶
A number of Dimension
s and Unit
have been pre-defined,
in the nineml.units
module, for example:
>>> from nineml.units import time, voltage, capacitance, nA, mol_per_cm3, Mohm
>>> voltage
Dimension(name='voltage', i=-1, m=1, t=-3, l=2)
>>> nA
Unit(name='nA', dimension='current', power=-9)
Dimension and units implement multiplication/division operators to allow the quick creation of compound units and dimensions
>>> from nineml.units import mV, ms
>>> mV / ms
Unit(name='mV_per_ms', dimension='voltage_per_time', power=0)