summaryrefslogtreecommitdiff
path: root/grc/gui/Utils.py
diff options
context:
space:
mode:
authorTom Rondeau2011-05-08 19:58:43 +0100
committerTom Rondeau2011-05-08 19:58:43 +0100
commita72bde633dda63c4471111894ca6b92a87318d5f (patch)
treec60e447e922b1a7076dd839ed8a94fcc9b665919 /grc/gui/Utils.py
parentbdd0bd405c2ea645395917c1abb91c964210c4d9 (diff)
parent207a2ae73bd5d6cab201bb57ed8db64fd54cfd90 (diff)
downloadgnuradio-a72bde633dda63c4471111894ca6b92a87318d5f.tar.gz
gnuradio-a72bde633dda63c4471111894ca6b92a87318d5f.tar.bz2
gnuradio-a72bde633dda63c4471111894ca6b92a87318d5f.zip
Merge branch 'master' into 8psk
Diffstat (limited to 'grc/gui/Utils.py')
-rw-r--r--grc/gui/Utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/gui/Utils.py b/grc/gui/Utils.py
index b5489d56e..bb19ed3d9 100644
--- a/grc/gui/Utils.py
+++ b/grc/gui/Utils.py
@@ -1,5 +1,5 @@
"""
-Copyright 2008, 2009 Free Software Foundation, Inc.
+Copyright 2008-2011 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion is free software; you can redistribute it and/or
@@ -53,7 +53,8 @@ def get_rotated_coordinate(coor, rotation):
"""
#handles negative angles
rotation = (rotation + 360)%360
- assert rotation in POSSIBLE_ROTATIONS
+ if rotation not in POSSIBLE_ROTATIONS:
+ raise ValueError('unusable rotation angle "%s"'%str(rotation))
#determine the number of degrees to rotate
cos_r, sin_r = {
0: (1, 0),