Skip to content

Commit

Permalink
fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Oct 3, 2024
1 parent b7396fa commit f8163c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desispec/coaddition.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def coadd(spectra, cosmics_nsig=None, onetile=False) :
# to combine data anyway we need to OR the masks to indicate issues
# for the rest of the we assume there were some good pixels
# hence the mask should stay zero
tmask[i, bad] = np.bitwise_or.reduce(spectra_mask[jj,bad], axis=0)
tmask[i, bad] = np.bitwise_or.reduce(spectra_mask[jj][:, bad], axis=0)
spectra.flux[b] = tflux
spectra.ivar[b] = tivar
if spectra.mask is not None :
Expand Down

0 comments on commit f8163c8

Please sign in to comment.