Skip to content

Commit

Permalink
Fix a naxes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Nov 20, 2024
1 parent dd5e514 commit 19d024b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gwcs/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def world_axis_units(self):

def _remove_quantity_output(self, result, frame):
if self.forward_transform.uses_quantity:
if self.output_frame.naxes == 1:
if frame.naxes == 1:
result = [result]

result = tuple(r.to_value(unit) if isinstance(r, u.Quantity) else r
Expand Down

0 comments on commit 19d024b

Please sign in to comment.