Skip to content

Commit

Permalink
determineDistortion(): set Chebyshev2D domain to be from 0 to npix-1 …
Browse files Browse the repository at this point in the history
…along each axis, consistent with other Chebyshevs
  • Loading branch information
chris-simpson committed Sep 19, 2020
1 parent 6cb4669 commit fd228d1
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 @@ -517,8 +517,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])
# x_domain = [x1, x1 + ext.shape[1] * xbin - 1],
# y_domain = [y1, y1 + ext.shape[0] * ybin - 1])
# Find model to transform actual (x,y) locations to the
Expand Down

0 comments on commit fd228d1

Please sign in to comment.