Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing astropy.units import #131

Merged
merged 1 commit into from
May 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions regions/shapes/line.py
Original file line number Diff line number Diff line change
@@ -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']


Expand All @@ -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
Expand Down Expand Up @@ -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
-------
Expand Down