Skip to content

Commit

Permalink
fix reproject
Browse files Browse the repository at this point in the history
  • Loading branch information
nden committed Oct 29, 2024
1 parent 0a57f81 commit d4c67f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jwst/resample/resample_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ def _get_forward(wcs):
if isinstance(wcs, gwcs.WCS):
return wcs.forward_transform
elif isinstance(wcs, fitswcs.WCS):
return wcs.pixel_to_world
return wcs.pixel_to_world_values
elif isinstance(wcs, Model):
return wcs

def _get_backward(wcs):
if isinstance(wcs, gwcs.WCS):
return wcs.backward_transform
elif isinstance(wcs, fitswcs.WCS):
return wcs.world_to_pixel
return wcs.world_to_pixel_values
elif isinstance(wcs, Model):
return wcs

Expand Down

0 comments on commit d4c67f2

Please sign in to comment.