diff options
author | Tom Rondeau <trondeau@vt.edu> | 2011-05-02 12:35:16 +0100 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2011-05-02 12:35:16 +0100 |
commit | 207a2ae73bd5d6cab201bb57ed8db64fd54cfd90 (patch) | |
tree | 3a828f115fdf011b7f78e45d75c45b7c4912a046 /grc/gui/Utils.py | |
parent | 7a91b8226f71d75b027beb466f965bbba97c07a8 (diff) | |
parent | a92cb89b5529728d9fce781aff85916b3879fbdd (diff) |
Merge branch 'mergeme/grc/cross_platform_work'
Diffstat (limited to 'grc/gui/Utils.py')
-rw-r--r-- | grc/gui/Utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/gui/Utils.py b/grc/gui/Utils.py index b5489d56e7..bb19ed3d96 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), |