mirror of https://github.com/m-labs/artiq.git
units: fix strip_unit
This commit is contained in:
parent
0abd41a04a
commit
f307897bec
|
@ -262,3 +262,5 @@ def strip_unit(value, unit):
|
|||
raise DimensionError
|
||||
else:
|
||||
return value.amount
|
||||
else:
|
||||
return value
|
||||
|
|
Loading…
Reference in New Issue