Apply suggestions from code review of branch scanning-stability

Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
Julian Stirling 2025-12-01 17:00:55 +00:00
parent 2749a1818c
commit 9b58f4d59e
5 changed files with 15 additions and 15 deletions

View file

@ -264,7 +264,7 @@ class ColourChannelDetectLUV(BackgroundDetectAlgorithm):
std = np.std(image_luv, axis=(0, 1))
if np.any(std == 0):
raise ChannelBlankError("Some LUV channels have no standard devaition.")
raise ChannelBlankError("Some LUV channels have no standard deviation.")
std = np.maximum(std, self.min_stds)
self.background_data = ChannelDistributions(
@ -298,7 +298,7 @@ class ChannelDeviationLUV(BackgroundDetectAlgorithm):
deviations of an 8x8 grid of sub-images to the median standard deviation
from a background image.
:returns: A value (between 0 and 100) is the percentage of the image that is
:returns: A value (between 0 and 100) that is the percentage of the image that is
sample.
"""
if not self.background_data:

View file

@ -865,7 +865,7 @@ class NoFocusFoundError(RuntimeError):
def _get_peak_turning_point(sharpnesses: np.ndarray) -> float:
"""Get the turing point for a sharpnesses in a z-stack.
"""Get the turning point for a sharpnesses in a z-stack.
:param sharpnesses: A numpy array of sharpnesses
:return: The x value of the turning point where x-axis is 0 to N-1 for the N