From 8b6eb2cff0929542c3aff73b9c491ec98e44b825 Mon Sep 17 00:00:00 2001 From: Javier Sanchez Date: Wed, 13 Nov 2024 14:47:12 -0500 Subject: [PATCH] fixed bug identified by T. Brandt --- .../measuring_galaxy_shapes/measuring_galaxy_shapes.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/notebooks/measuring_galaxy_shapes/measuring_galaxy_shapes.ipynb b/content/notebooks/measuring_galaxy_shapes/measuring_galaxy_shapes.ipynb index 781e771..9060fda 100644 --- a/content/notebooks/measuring_galaxy_shapes/measuring_galaxy_shapes.ipynb +++ b/content/notebooks/measuring_galaxy_shapes/measuring_galaxy_shapes.ipynb @@ -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",