diff --git a/py4DSTEM/process/phase/iterative_parallax.py b/py4DSTEM/process/phase/iterative_parallax.py index 039c5c0a8..b20e14532 100644 --- a/py4DSTEM/process/phase/iterative_parallax.py +++ b/py4DSTEM/process/phase/iterative_parallax.py @@ -1874,7 +1874,7 @@ def _bilinearly_interpolate_array( raveled_image = image.ravel() intensities = xp.zeros(xa.shape, dtype=xp.float32) - filter_weights = xp.zeros(xa.shape, dtype=xp.float32) + # filter_weights = xp.zeros(xa.shape, dtype=xp.float32) for inds, weights in zip(all_inds, all_weights): intensities += ( @@ -1887,9 +1887,9 @@ def _bilinearly_interpolate_array( ] * weights ) - filter_weights += weights + # filter_weights += weights - return intensities / filter_weights + return intensities # / filter_weights # unnecessary, sums up to unity def _lanczos_interpolate_array( self,