Skip to content

Commit

Permalink
fixed bug identified by T. Brandt
Browse files Browse the repository at this point in the history
  • Loading branch information
fjaviersanchez committed Nov 13, 2024
1 parent 95a8e0b commit 8b6eb2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@
"source": [
"def sersic_mod(cutout, n, hlr, influx, pa, x0, y0, q):\n",
" nx, ny = cutout.array.shape\n",
" ser = galsim.Sersic(n, half_light_radius=hlr, flux=flux)\n",
" ser.shear(q=q, beta=pa * galsim.degrees) # change PA and axis ratio\n",
" ser = galsim.Sersic(n, half_light_radius=hlr, flux=influx)\n",
" ser = ser.shear(q=q, beta=pa * galsim.degrees) # change PA and axis ratio\n",
" offset = galsim.PositionD(x=x0, y=y0) # potentially shift a bit the profile\n",
" ser = galsim.convolve.Convolve(ser, psf_obj) # add PSF\n",
" img = galsim.ImageD(nx, ny, scale=0.11) \n",
Expand Down

0 comments on commit 8b6eb2c

Please sign in to comment.