From f502335a1a9121eeaa8bd2e06adae49c5408830a Mon Sep 17 00:00:00 2001 From: mdroe Date: Mon, 4 Jun 2012 21:02:28 +0000 Subject: 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 --- lib/great_circle_arc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/great_circle_arc.py') diff --git a/lib/great_circle_arc.py b/lib/great_circle_arc.py index f70d16e..399cb3d 100644 --- a/lib/great_circle_arc.py +++ b/lib/great_circle_arc.py @@ -41,14 +41,14 @@ coincident with the center of the sphere. Great circle arcs are the section of those circles between two points on the unit sphere. """ -from __future__ import with_statement, division, absolute_import +from __future__ import with_statement, division, absolute_import, unicode_literals # THIRD-PARTY import numpy as np try: - from sphere import math_util + from . import math_util HAS_C_UFUNCS = True except ImportError: HAS_C_UFUNCS = False @@ -89,7 +89,7 @@ if not HAS_C_UFUNCS: return TN def intersection(A, B, C, D): - ur""" + r""" Returns the point of intersection between two great circle arcs. The arcs are defined between the points *AB* and *CD*. Either *A* and *B* or *C* and *D* may be arrays of points, but not both. @@ -188,7 +188,7 @@ else: def length(A, B, degrees=True): - ur""" + r""" Returns the angular distance between two points (in vector space) on the unit sphere. @@ -320,7 +320,7 @@ def midpoint(A, B): def interpolate(A, B, steps=50): - ur""" + r""" Interpolate along the great circle arc. Parameters -- cgit