Skip to content

Commit

Permalink
Merge branch 'tickets/DM-45529'
Browse files Browse the repository at this point in the history
  • Loading branch information
leeskelvin committed Oct 1, 2024
2 parents c4f9d4d + ce0daa1 commit 4eafb96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/source/injection/inject_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ def make_galsim_trail(
linear_wcs = wcs.linearizePixelToSky(sky_coords, arcseconds)
mat = linear_wcs.getMatrix()
object = object.transform(mat[0, 0], mat[0, 1], mat[1, 0], mat[1, 1])
# Rescale flux; transformation preserves surface brightness, not flux.
object *= 1.0 / np.abs(mat[0, 0] * mat[1, 1] - mat[0, 1] * mat[1, 0])
return object # type: ignore


Expand Down

0 comments on commit 4eafb96

Please sign in to comment.