diff options
author | mdroe <mdroe@stsci.edu> | 2012-06-04 17:02:28 -0400 |
---|---|---|
committer | mdroe <mdroe@stsci.edu> | 2012-06-04 17:02:28 -0400 |
commit | f502335a1a9121eeaa8bd2e06adae49c5408830a (patch) | |
tree | d442735fd8b7de3a298a60d93352fe3f200d87d8 /lib/vector.py | |
parent | b6749b81e09abad7944a4af21417e23cd8ad3460 (diff) | |
download | stsci.sphere-f502335a1a9121eeaa8bd2e06adae49c5408830a.tar.gz |
Python 3.x fixes
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17201 fe389314-cf27-0410-b35b-8c050e845b92
Former-commit-id: 645db247912b7d5985ab878bd3c7fb5e9574f05d
Diffstat (limited to 'lib/vector.py')
-rw-r--r-- | lib/vector.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/vector.py b/lib/vector.py index 5d26161..c6887c4 100644 --- a/lib/vector.py +++ b/lib/vector.py @@ -37,6 +37,8 @@ The `sphere.vector` module contains the basic operations for handling vectors and converting them to and from other representations. """ +from __future__ import unicode_literals + # THIRD-PARTY import numpy as np @@ -46,7 +48,7 @@ __all__ = ['radec_to_vector', 'vector_to_radec', 'normalize_vector', def radec_to_vector(ra, dec, degrees=True): - ur""" + r""" Converts a location on the unit sphere from right-ascension and declination to an *x*, *y*, *z* vector. @@ -93,7 +95,7 @@ def radec_to_vector(ra, dec, degrees=True): def vector_to_radec(x, y, z, degrees=True): - ur""" + r""" Converts a vector to right-ascension and declination. Parameters @@ -134,7 +136,7 @@ def vector_to_radec(x, y, z, degrees=True): def normalize_vector(x, y, z, inplace=False): - ur""" + r""" Normalizes a vector so it falls on the unit sphere. *x*, *y*, *z* may be scalars or 1-D arrays |