Apply suggestions from code review of branch scanning-stability
Co-authored-by: Joe Knapper <joe.knapper@glasgow.ac.uk>
This commit is contained in:
parent
2749a1818c
commit
9b58f4d59e
5 changed files with 15 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue