Skip to content

Commit

Permalink
Merge pull request #23 from svank/interpolation-points
Browse files Browse the repository at this point in the history
Align interpolation points to data points
  • Loading branch information
jmbhughes committed Apr 6, 2023
2 parents 9ba9a28 + 61d5123 commit 6fdcba1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions regularizepsf/fitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,12 @@ def generator():
interpolator = RectBivariateSpline(np.arange(image.shape[0]),
np.arange(image.shape[1]),
image)
image = interpolator(np.linspace(0,
image.shape[0],
image.shape[0] * interpolation_scale),
np.linspace(0,
image.shape[1],
image.shape[1] * interpolation_scale))
image = interpolator(np.linspace(0,
image.shape[0] - 1,
1 + (image.shape[0] - 1) * interpolation_scale),
np.linspace(0,
image.shape[1] - 1,
1 + (image.shape[1] - 1) * interpolation_scale))

# find stars using SEP
background = sep.Background(image)
Expand Down

0 comments on commit 6fdcba1

Please sign in to comment.