Skip to content

Commit

Permalink
Remove forgotten comments
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Oct 9, 2024
1 parent 05b4387 commit 595f88a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scopesim_templates/extragalactic/galaxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 595f88a

Please sign in to comment.