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

Revert "APE 14 says return for pixel_to_world should not be a tuple if 1D" #342

Merged
merged 1 commit into from
Dec 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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