Commit 9d27091a authored by Chris Smith's avatar Chris Smith
Browse files

Don't normalize cleaned image unless raw was normalized

parent 0f2e5149
......@@ -719,11 +719,14 @@ class ImageWindow(object):
clean_image = np.divide(accum, counts)
clean_image[np.isnan(clean_image)] = 0
'''
Renormalize the cleaned image
'''
clean_image -= np.min(clean_image)
clean_image = clean_image/np.max(clean_image)
if h5_win.file.attrs['normalized']:
'''
Renormalize the cleaned image
'''
clean_image -= np.min(clean_image)
clean_image = clean_image/np.max(clean_image)
'''
Calculate the removed noise and FFTs
......
Supports Markdown
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