From 1b5944257e393ca9aab6035ba30ed0407d381d8b Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Fri, 20 Feb 2015 17:37:54 +0100 Subject: [PATCH] units: add support for V (Volt) --- artiq/language/units.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/language/units.py b/artiq/language/units.py index 23dc96f6f..c15bf7e01 100644 --- a/artiq/language/units.py +++ b/artiq/language/units.py @@ -215,6 +215,7 @@ def _register_unit(unit, prefixes): _register_unit("s", "pnum_") _register_unit("Hz", "_kMG") _register_unit("dB", "_") +_register_unit("V", "um_k") def check_unit(value, unit):