Skip to content

Commit

Permalink
Merge aa8571d into e28afa4
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabor committed Jun 13, 2016
2 parents e28afa4 + aa8571d commit bf804bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astroscrappy/astroscrappy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ def detect_cosmics(indat, inmask=None, float sigclip=4.5, float sigfrac=0.3,
# otherwise clean the image and iterate
if cleantype == 'median':
# Unmasked median filter
cleanarr[crmask] = m5[crmask]
cindices = crmask.nonzero()
cleanarr[cindices] = m5[cindices]
del m5
# Masked mean filter
elif cleantype == 'meanmask':
Expand Down

0 comments on commit bf804bd

Please sign in to comment.