Skip to content

Commit

Permalink
fix for acquisitions without laser af
Browse files Browse the repository at this point in the history
  • Loading branch information
Alpaca233 committed Mar 4, 2025
1 parent 2a6ab0f commit b5fb059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/control/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ def acquire_at_position(self, region_id, current_path, fov):
print(f"Acquiring image: ID={file_ID}, Metadata={metadata}")

# laser af characterization mode
if self.microscope.laserAutofocusController.characterization_mode:
if self.do_reflection_af and self.microscope.laserAutofocusController.characterization_mode:
image = self.microscope.laserAutofocusController.get_image()
saving_path = os.path.join(current_path, file_ID + "_laser af camera" + ".bmp")
iio.imwrite(saving_path, image)
Expand Down

0 comments on commit b5fb059

Please sign in to comment.