forked from M-Labs/artiq
units: add support for V (Volt)
This commit is contained in:
parent
9485372277
commit
1b5944257e
|
@ -215,6 +215,7 @@ def _register_unit(unit, prefixes):
|
||||||
_register_unit("s", "pnum_")
|
_register_unit("s", "pnum_")
|
||||||
_register_unit("Hz", "_kMG")
|
_register_unit("Hz", "_kMG")
|
||||||
_register_unit("dB", "_")
|
_register_unit("dB", "_")
|
||||||
|
_register_unit("V", "um_k")
|
||||||
|
|
||||||
|
|
||||||
def check_unit(value, unit):
|
def check_unit(value, unit):
|
||||||
|
|
Loading…
Reference in New Issue