diff --git a/src/openflexure_microscope_server/background_detect.py b/src/openflexure_microscope_server/background_detect.py index a3a6fa82..d57b7c6b 100644 --- a/src/openflexure_microscope_server/background_detect.py +++ b/src/openflexure_microscope_server/background_detect.py @@ -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 diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index c830c93c..edfd1067 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -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. diff --git a/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue b/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue index 28eb4c21..ab23529a 100644 --- a/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue +++ b/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue @@ -44,17 +44,12 @@ export default { }, methods: { - alertBackgroundFraction(r) { - let fraction = r.output; - // let percentage = (fraction * 100).toFixed(0); - this.modalNotify(`Current image is ${fraction.toFixed(0)}% background.`); - }, alertBackgroundSet() { this.modalNotify(`Background image has been updated`); }, alertImageLabel(r) { let label = r.output[0] ? "sample" : "background"; - this.modalNotify(`Current image is ${label}, as ${r.output[1]}`); + this.modalNotify(`Current image is ${label} (${r.output[1]})`); }, backgroundDetectError() { this.modalError(