@@ -353,7 +353,7 @@ def get_diffraction_pattern(
353353 mirrored : bool = False ,
354354 fast : bool = True ,
355355 normalize : bool = True ,
356- fast_clip_threshold : float = 1 ,
356+ clip_threshold : float = 1 ,
357357 ):
358358 """Returns the diffraction data as a numpy array with
359359 two-dimensional Gaussians representing each diffracted peak. Should only
@@ -377,7 +377,7 @@ def get_diffraction_pattern(
377377 Whether to speed up calculations by rounding spot coordinates down to integer pixel
378378 normalize: bool, optional
379379 Whether to normalize the pattern to values between 0 and 1
380- fast_clip_threshold : float, optional
380+ clip_threshold : float, optional
381381 Only used when `fast` is False.
382382 Pixel intensity threshold, such that pixels which would be below this value are ignored.
383383 Thresholding performed before possible normalization.
@@ -424,7 +424,7 @@ def get_diffraction_pattern(
424424 return np .zeros (shape )
425425
426426 pattern = get_pattern_from_pixel_coordinates_and_intensities (
427- spot_coords , spot_intens , shape , sigma , fast_clip_threshold
427+ spot_coords , spot_intens , shape , sigma , clip_threshold
428428 )
429429 if normalize :
430430 pattern = np .divide (pattern , np .max (pattern ))
0 commit comments