From b4ec32a30927b87e97e0545053000c8b4a9c65f7 Mon Sep 17 00:00:00 2001 From: Larry Bradley Date: Wed, 10 May 2017 10:51:18 -0400 Subject: [PATCH] Add missing import --- regions/shapes/line.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/regions/shapes/line.py b/regions/shapes/line.py index f10cd61d..e32ec5b7 100644 --- a/regions/shapes/line.py +++ b/regions/shapes/line.py @@ -1,10 +1,13 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst -from __future__ import absolute_import, division, print_function, unicode_literals +from __future__ import (absolute_import, division, print_function, + unicode_literals) +import astropy.units as u from astropy.wcs.utils import pixel_to_skycoord, skycoord_to_pixel from ..core import PixCoord, PixelRegion, SkyRegion, BoundingBox + __all__ = ['LinePixelRegion', 'LineSkyRegion'] @@ -31,7 +34,7 @@ def __init__(self, start, end, meta=None, visual=None): @property def area(self): """Region area (float).""" - return 0 * u.sr + return 0 * u.sr def contains(self, pixcoord): return False @@ -117,7 +120,7 @@ def to_pixel(self, wcs, mode='local', tolerance=100): mode : 'local', 'affine', 'full' all modes are the same tolerance : int - not used + not used Returns -------