Skip to content

Commit f481003

Browse files
authored
Change window dtype conversion to float64
1 parent 8a7d623 commit f481003

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openpiv/pyprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,8 @@ def normalize_intensity(window):
768768
the interrogation window array, with zero mean and variance 1
769769
"""
770770
# Convert to float32 only if needed, otherwise work in-place
771-
if window.dtype != np.float32:
772-
window = window.astype(np.float32)
771+
if window.dtype != np.float64:
772+
window = window.astype(np.float64)
773773
else:
774774
window = window.copy() # Still need a copy to avoid modifying input
775775

0 commit comments

Comments
 (0)