diff --git a/gwcs/api.py b/gwcs/api.py index bcff2c1b..fed751ff 100644 --- a/gwcs/api.py +++ b/gwcs/api.py @@ -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