Commit 77477145 authored by Leo Pound Singer's avatar Leo Pound Singer

Exclude missing data from smoothing

parent 00d68b3f
......@@ -297,7 +297,7 @@ class AutoScaledWCSAxes(WCSAxes):
# Ignore divide by zero warnings for pixels that have no valid
# neighbors.
with np.errstate(invalid='ignore'):
img = convolve_fft(img, kernel)
img = convolve_fft(img, kernel, fill_value=np.nan)
return img
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