From 595f88a4588e70227c1872fa7a0286edabfc81af Mon Sep 17 00:00:00 2001 From: teutoburg Date: Wed, 9 Oct 2024 14:10:56 +0200 Subject: [PATCH] Remove forgotten comments --- scopesim_templates/extragalactic/galaxies.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scopesim_templates/extragalactic/galaxies.py b/scopesim_templates/extragalactic/galaxies.py index 27afbb0..1d6476d 100644 --- a/scopesim_templates/extragalactic/galaxies.py +++ b/scopesim_templates/extragalactic/galaxies.py @@ -117,12 +117,11 @@ def _get_masked_subsources(gal, ngrid, scaled_sp, header): for i, mask in enumerate(masks): # logger.debug("creating subsource %d", i) data = mask * intensity # 0 ... 1 - factor = data.sum() med_vel = velocity[mask].mean() med_sig = dispersion[mask].mean() - spec = scaled_sp.redshift(vel=med_vel).smooth(sigma=med_sig) # * factor + spec = scaled_sp.redshift(vel=med_vel).smooth(sigma=med_sig) header.update({"SPEC_REF": i}) hdu = fits.ImageHDU(data=data, header=header)