Skip to content

Commit

Permalink
show calibration result
Browse files Browse the repository at this point in the history
  • Loading branch information
Alpaca233 committed Feb 24, 2025
1 parent 729a8d6 commit 479e458
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions software/control/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 479e458

Please sign in to comment.