diff --git a/gwcs/tests/test_coordinate_systems.py b/gwcs/tests/test_coordinate_systems.py index f977bd03..0d4b3e3a 100644 --- a/gwcs/tests/test_coordinate_systems.py +++ b/gwcs/tests/test_coordinate_systems.py @@ -107,7 +107,7 @@ def test_bare_baseframe(): w = WCS(forward_transform=m.Tabular1D(points=np.arange(10)*u.pix, lookup_table=np.arange(10)*u.km), output_frame=frame, - input_frame=cf.CoordinateFrame(1, "PIXEL", (0,), unit=(u.pix,)) + input_frame=cf.CoordinateFrame(1, "PIXEL", (0,), unit=(u.pix,), name="detector_frame") ) assert u.allclose(w.world_to_pixel(0*u.km), 0) diff --git a/gwcs/wcs.py b/gwcs/wcs.py index 37328b5b..eff22e7d 100644 --- a/gwcs/wcs.py +++ b/gwcs/wcs.py @@ -496,7 +496,6 @@ def unit(self): def output_frame(self): """Return the output coordinate frame.""" if self._pipeline: - #frame = self._pipeline[-1][0] frame = self._pipeline[-1].frame if not isinstance(frame, str): frame = frame.name @@ -508,7 +507,6 @@ def output_frame(self): def input_frame(self): """Return the input coordinate frame.""" if self._pipeline: - #frame = self._pipeline[0][0] frame = self._pipeline[0].frame if not isinstance(frame, str): frame = frame.name