From 479e4589baa4f1ac98eb4bc56ce2abdfcdf66380 Mon Sep 17 00:00:00 2001 From: You Yan Date: Sun, 23 Feb 2025 19:22:26 -0800 Subject: [PATCH] show calibration result --- software/control/widgets.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/software/control/widgets.py b/software/control/widgets.py index 49cecd78..41a26a31 100644 --- a/software/control/widgets.py +++ b/software/control/widgets.py @@ -568,6 +568,17 @@ def apply_settings(self): } self.laserAutofocusController.set_laser_af_properties(updates) self.laserAutofocusController.initialize_auto() + self.update_calibration_label() + + def update_calibration_label(self): + # Clear previous calibration label if it exists + if hasattr(self, 'calibration_label'): + self.calibration_label.deleteLater() + + # Create and add new calibration label + self.calibration_label = QLabel() + self.calibration_label.setText(f"Calibration Result: {self.laserAutofocusController.laser_af_properties.pixel_to_um:.3f} pixels/um") + self.layout().addWidget(self.calibration_label) class SpinningDiskConfocalWidget(QWidget):