Move ThingSetting and ThingProperty docstrings under the definition.

This commit is contained in:
Julian Stirling 2025-07-10 10:43:05 +01:00
parent 12df8c9072
commit 11a1fd7f85
7 changed files with 42 additions and 47 deletions

View file

@ -53,14 +53,14 @@ class BackgroundDetectThing(lt.Thing):
tolerance = lt.ThingSetting(
initial_value=7.0,
model=float,
description="How many standard deviations to allow for the background",
)
"""How many standard deviations to allow for the background."""
fraction = lt.ThingSetting(
initial_value=25.0,
model=float,
description="How much of the image needs to be not background to label as sample",
)
"""How much of the image needs to be not background to label as sample"""
def background_mask(self, image: np.ndarray) -> np.ndarray:
"""Calculate a binary image, showing whether each pixel is background.