From f307897bec8145c6db578c336a2f97c90b68303c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 27 Feb 2015 10:43:03 -0700 Subject: [PATCH] units: fix strip_unit --- artiq/language/units.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/language/units.py b/artiq/language/units.py index 52a456e3a..fc8b530f6 100644 --- a/artiq/language/units.py +++ b/artiq/language/units.py @@ -262,3 +262,5 @@ def strip_unit(value, unit): raise DimensionError else: return value.amount + else: + return value