Skip to content

Commit

Permalink
units: fix strip_unit
Browse files Browse the repository at this point in the history
sbourdeauducq committed Feb 27, 2015
1 parent 0abd41a commit f307897
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artiq/language/units.py
Original file line number Diff line number Diff line change
@@ -262,3 +262,5 @@ def strip_unit(value, unit):
raise DimensionError
else:
return value.amount
else:
return value

0 comments on commit f307897

Please sign in to comment.