Skip to content

Commit

Permalink
Fix test fail to work around spacetelescope#327
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Nov 11, 2020
1 parent a35ff2c commit 117b769
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion gwcs/tests/test_coordinate_systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 0 additions & 2 deletions gwcs/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 117b769

Please sign in to comment.