Skip to content

Commit

Permalink
Merge pull request #342 from spacetelescope/revert-332-ape_14_return
Browse files Browse the repository at this point in the history
Revert "APE 14 says return for pixel_to_world should not be a tuple if 1D"
  • Loading branch information
nden committed Dec 20, 2020
2 parents 0a54327 + 60d1bc6 commit 2825484
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gwcs/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,7 @@ def pixel_to_world(self, *pixel_arrays):
Convert pixel values to world coordinates.
"""
pixels = self._sanitize_pixel_inputs(*pixel_arrays)
result = self(*pixels, with_units=True)
if self.output_frame.naxes == 1:
return result[0]
return result
return self(*pixels, with_units=True)

def array_index_to_world(self, *index_arrays):
"""
Expand Down

0 comments on commit 2825484

Please sign in to comment.