@@ -364,7 +364,7 @@ def get_diffraction_pattern(
364364 mirrored : bool = False ,
365365 fast : bool = True ,
366366 normalize : bool = True ,
367- fast_clip_threshold : float = 1 ,
367+ clip_threshold : float = 1 ,
368368 ):
369369 """Returns the diffraction data as a numpy array with
370370 two-dimensional Gaussians representing each diffracted peak. Should only
@@ -388,7 +388,7 @@ def get_diffraction_pattern(
388388 Whether to speed up calculations by rounding spot coordinates down to integer pixel
389389 normalize: bool, optional
390390 Whether to normalize the pattern to values between 0 and 1
391- fast_clip_threshold : float, optional
391+ clip_threshold : float, optional
392392 Only used when `fast` is False.
393393 Pixel intensity threshold, such that pixels which would be below this value are ignored.
394394 Thresholding performed before possible normalization.
@@ -435,7 +435,7 @@ def get_diffraction_pattern(
435435 return np .zeros (shape )
436436
437437 pattern = get_pattern_from_pixel_coordinates_and_intensities (
438- spot_coords , spot_intens , shape , sigma , fast_clip_threshold
438+ spot_coords , spot_intens , shape , sigma , clip_threshold
439439 )
440440 if normalize :
441441 pattern = np .divide (pattern , np .max (pattern ))
0 commit comments