Skip to content

Switch to virtual/synthetic microscope config#1197

Open
AdvancedImagingUTSW wants to merge 1 commit intodevelopfrom
1187-make-the-demo-default-configuration-only-synthetic-and-minimal
Open

Switch to virtual/synthetic microscope config#1197
AdvancedImagingUTSW wants to merge 1 commit intodevelopfrom
1187-make-the-demo-default-configuration-only-synthetic-and-minimal

Conversation

@AdvancedImagingUTSW
Copy link
Collaborator

Overhauled configuration to replace hardware-specific Mesoscale/Nanoscale entries with a unified virtual_microscope using Synthetic/virtual hardware. Removed NI, Hamamatsu, Sutter, PI, and Thorlabs-specific settings and consolidated DAQ, camera, filter_wheel, galvo, shutter, laser, stage, and zoom into virtual defaults for simulation/testing. Adjusted camera delay/settle values, simplified filter mappings, added virtual trigger/laser channels, normalized stage/joystick limits, and removed legacy GUI/BDVParameters sections.

Overhauled configuration to replace hardware-specific Mesoscale/Nanoscale entries with a unified virtual_microscope using Synthetic/virtual hardware. Removed NI, Hamamatsu, Sutter, PI, and Thorlabs-specific settings and consolidated DAQ, camera, filter_wheel, galvo, shutter, laser, stage, and zoom into virtual defaults for simulation/testing. Adjusted camera delay/settle values, simplified filter mappings, added virtual trigger/laser channels, normalized stage/joystick limits, and removed legacy GUI/BDVParameters sections.
Copy link
Contributor

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

Updates the default microscope configuration to use a single virtual_microscope backed by Synthetic/virtual devices, replacing prior hardware-specific microscope entries.

Changes:

  • Replaced Mesoscale/Nanoscale microscope configs with a unified virtual_microscope Synthetic configuration.
  • Consolidated device sections (DAQ, camera, filter wheel, galvo, laser, stage, zoom) into virtual defaults and removed legacy blocks.
  • Simplified filter naming/mapping and adjusted timing/limits parameters for simulation/testing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1 to 3
microscopes:
Mesoscale:
daq:
hardware:
type: NI

# NI PCIe-1073 Chassis with PXI-6259 and PXI-6733 DAQ Boards.
# Sampling rate in Hz
sample_rate: 100000

# triggers
master_trigger_out_line: PXI6259/port0/line1
camera_trigger_out_line: /PXI6259/ctr0
trigger_source: /PXI6259/PFI0

# Digital Laser Outputs
laser_port_switcher: PXI6733/port0/line0
laser_switch_state: False

virtual_microscope:
camera:
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

configuration.yaml no longer defines a top-level gui: section, but verify_experiment_config() reads configuration["configuration"]["gui"]["channels"]["count"] (see src/navigate/config/config.py:623). With this YAML, Navigate will raise a KeyError: 'gui' during startup. Either restore gui.channels.count in this file (as in synthetic_configuration.yaml), or update the codepath to read from the separately-loaded gui_configuration.yml (configuration["gui"]) instead of configuration["configuration"]["gui"].

Copilot uses AI. Check for mistakes.
Comment on lines +78 to +82
axis: NA
channel: virtual\d01
max: 5.0
min: 0.0
port: COM2
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The shutter hardware.channel uses a backslash (virtual\d01) while all other synthetic channel identifiers use forward slashes (e.g., virtual/ao0). This inconsistency is very likely a typo and will break any logic that expects the virtual/<signal> format; consider changing it to the same convention (for example virtual/do1 or virtual/do0, whichever is intended).

Copilot uses AI. Check for mistakes.
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.

Make the demo default configuration only synthetic and minimal

2 participants