Move ThingSetting and ThingProperty docstrings under the definition.
This commit is contained in:
parent
12df8c9072
commit
11a1fd7f85
7 changed files with 42 additions and 47 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue