Fix message formatting and dosctring syntax
This commit is contained in:
parent
25d2f400b1
commit
75bdae5593
3 changed files with 3 additions and 8 deletions
|
|
@ -204,7 +204,7 @@ class ColourChannelDetectLUV(BackgroundDetectAlgorithm):
|
|||
sample_coverage = self.get_sample_coverage(image)
|
||||
|
||||
is_sample = sample_coverage > self.settings.min_sample_coverage
|
||||
message = f"{sample_coverage}% sample"
|
||||
message = f"{sample_coverage:0.1f}% sample"
|
||||
if not is_sample:
|
||||
message = "only " + message
|
||||
return is_sample, message
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"""The core sample scanning functionality for the OpenFlexure Microscope.
|
||||
|
||||
SmartScan provides sample scanning functionality including automatic background
|
||||
detection (via the `CameraThing`) and automatic path planning via
|
||||
detection (via the ``CameraThing``) and automatic path planning via
|
||||
`scan_planners`. It manages the directories of past scans via `scan_directories`.
|
||||
It also controls external processes for live stitching composite images, and
|
||||
the creation of the final stitched images.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue