Skip to content

Commit

Permalink
determineDistortion(): set domains to [0, npix-1] along each axis ins…
Browse files Browse the repository at this point in the history
…tead of [0, npix]
  • Loading branch information
chris-simpson committed Nov 10, 2022
1 parent de028a8 commit a409f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geminidr/core/primitives_spect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,8 @@ def determineDistortion(self, adinputs=None, **params):
# of the data, so it could be used as a gWCS object
m_init = models.Chebyshev2D(x_degree=orders[1 - dispaxis],
y_degree=orders[dispaxis],
x_domain=[0, ext.shape[1]],
y_domain=[0, ext.shape[0]])
x_domain=[0, ext.shape[1]-1],
y_domain=[0, ext.shape[0]-1])
# Rather than fit to the reference coords, let's fit to the
# *shift* we want in the spectral direction and then add a
# linear term which will produce the desired model. This
Expand Down

0 comments on commit a409f6a

Please sign in to comment.