Skip to content

Conversation

@jeskesen
Copy link
Collaborator

@jeskesen jeskesen commented Jul 9, 2025

Addresses: #179 (partial) & #184

@jeskesen jeskesen requested review from Copilot and ieivanov July 9, 2025 19:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extends the acquisition CLI and engine to support label-free (LF) only operation on real Mantis hardware, adds a separate LF config option, and updates defaults and examples accordingly.

  • Added --lf-config-filepath CLI option and switched default config to LF.
  • Updated MantisAcquisition/BaseChannelSliceAcquisition to allow LF-only or LS-only runs and pass both config files.
  • Refactored image dimension retrieval, camera property lookups, and example YAML/config files to reflect LF defaults.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

File Description
mantis/cli/run_acquisition.py Introduced --lf-config-filepath, changed default config path
mantis/acquisition/acq_engine.py Made acquisition types optional, dynamic image size, threading
examples/acquisition_settings/*.yaml Tweaked defaults for time, exposures, autofocus, and autoexposure
examples/microscope_configs/*.cfg Added new example Mantis LF hardware config files
Comments suppressed due to low confidence (1)

mantis/cli/run_acquisition.py:12

  • The variable default_mm_config_filepath now points to the LF config but is still named for a generic MM config. Rename this to default_lf_config_filepath, and introduce a separate default_ls_config_filepath for the light-sheet default.
default_mm_config_filepath = 'C:\\CompMicro_MMConfigs\\mantis\\mantis-LF.cfg'

)
@click.option(
"--lf-config-filepath",
default=default_mm_config_filepath,
Copy link

Copilot AI Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both --mm-config-filepath and --lf-config-filepath use the same default. After splitting into default_ls_config_filepath and default_lf_config_filepath, ensure --mm-config-filepath uses the LS default and --lf-config-filepath uses the LF default.

Suggested change
default=default_mm_config_filepath,
default=default_lf_config_filepath,

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is known, I wanted to add the ability to set the LF config without breaking any existing acquisition that used the previous config path. There's probably a better way to do it.

@jeskesen jeskesen closed this Jul 15, 2025
@jeskesen
Copy link
Collaborator Author

Due to difficulties I'm having pushing from the mantis microscope to this repo, I've forked the repo and will open another PR from there.

@ieivanov ieivanov deleted the 184-on-device-dev branch January 30, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants