Skip to content

Commit

Permalink
Fix indexing with int array
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Kovacs committed Jun 13, 2016
1 parent e8b1397 commit aa8571d
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 aa8571d

Please sign in to comment.