Skip to content

Commit

Permalink
ensure Block.wcs works for non-2D data
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-simpson committed Aug 12, 2020
1 parent 958b5e2 commit 7f6c47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gempy/library/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def shape(self):
@property
def wcs(self):
"""WCS object"""
if self.corners[0] != (0, 0):
raise ValueError("First element does not start at (0, 0)")
if not all (c == 0 for c in self.corners[0]):
raise ValueError("First element does not start at origin")
return self._elements[0].wcs

def _return_array(self, elements):
Expand Down

0 comments on commit 7f6c47f

Please sign in to comment.