summaryrefslogtreecommitdiff
path: root/lib/vector.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vector.py')
-rw-r--r--lib/vector.py8
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