Commit c59a13ee authored by Wilfried Mercier's avatar Wilfried Mercier
Browse files

solved a bug in remove_nanvar function

parents af670df4 845a8e78
......@@ -420,8 +420,7 @@ def clipcube(cube, hdr, xy=3, sclip=3, npass=10):
im = cube[z, :]
count = 0
ok = False
#while count < npass | ok:
while (count < npass) & (not(ok)):
while count < npass | ok:
count += 1
im1 = ndimage.median_filter(im, xy)
diff = im - im1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment