Skip to content

Commit

Permalink
Merge pull request #74 from eteq/low-level-wcs-checking
Browse files Browse the repository at this point in the history
add check that input to HighLevelWCS is a low level WCS
  • Loading branch information
astrofrog committed Oct 2, 2018
2 parents c4b99de + f086e2d commit 54187ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions astropy/wcs/wcsapi/high_level_wcs_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from .high_level_api import HighLevelWCSMixin

from . import BaseLowLevelWCS

__all__ = ['HighLevelWCSWrapper']


Expand All @@ -10,6 +12,9 @@ class HighLevelWCSWrapper(HighLevelWCSMixin):
"""

def __init__(self, low_level_wcs):
if not isinstance(low_level_wcs, BaseLowLevelWCS):
raise TypeError('Input to a HighLevelWCSWrapper must be a low level WCS object')

self._low_level_wcs = low_level_wcs

@property
Expand Down

0 comments on commit 54187ae

Please sign in to comment.