Skip to content

Conversation

@cccoolll
Copy link

@cccoolll cccoolll commented Jul 26, 2024

Changes

Configuration File Reading

  • Bug Fixes:
    • Resolved issues with configuration file reading.

Simulated Camera Implementation

  • Features Added:
    • Implemented functionality to read images from different illumination channels captured previously, and to return a random image if no specific channel image is available.
    • Introduced the simulated camera with capabilities for movement, focus, illumination, and exposure time adjustment.

Docker Configurations

  • New Additions:
    • Added Dockerfile and docker-compose.yaml to simplify deployment and setup for development and testing environments.

@oeway
Copy link
Collaborator

oeway commented Jul 26, 2024

Hi @cccoolll Thanks! A general comment, I would remove any thing related to the web and hypha for now (you can move it to other repo, e.g. the reef imaging repo). For now it would be good to keep this repo clean, only contain code about the basic microscope control.

@cccoolll cccoolll changed the title Fix Configuration File Reading, Add Docker Integration Fix Configuration File Reading, add simulated camera with movement, focus, illumination and exposure time adjustment. Aug 6, 2024
@cccoolll cccoolll changed the title Fix Configuration File Reading, add simulated camera with movement, focus, illumination and exposure time adjustment. Fix Configuration File Reading, Add Simulated Camera with Adjustable Parameters Aug 6, 2024
@cccoolll
Copy link
Author

cccoolll commented Aug 6, 2024

@oeway I've updated the pull request to include a new feature for the simulated camera. The current PR now covers configuration file reading, bug fixes, simulated camera implementation, and Docker configurations.

I created a new branch for the simulated camera and then merged it into my fork's main branch. Is that OK? Is that OK, or should I have kept my main branch only for stable changes?

parser = argparse.ArgumentParser()
parser.add_argument(
"--simulation", help="Run the GUI with simulated hardware.", action="store_true"
"--nosimulation", help="Run the GUI with simulated hardware.", action="store_true"
Copy link
Collaborator

@oeway oeway Aug 7, 2024

Choose a reason for hiding this comment

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

Why change to nosimulation? The default mode should not be simulation IMO

STEPS_PER_REVOLUTION = 200 * 8 # Full steps per revolution times microstepping factor

# Edge positions in mm
edge_positions_mm = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

These should not be hardcoded, can we put them in a file which generated during a calibration process?

Copy link
Author

Choose a reason for hiding this comment

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

This is a very old file. The current version of 'mm_to_usteps' is here: https://github.com/cccoolll/squid-control/blob/156f9e188df9007d5fd3d7ea42004a3bfdffbf4b/squid_control/control/utils/generate_software_limit.py#L19

So we should remove this file.

# Ensure the .squid-control directory exists
config_dir.mkdir(exist_ok=True)
config_dir = os.path.abspath(__file__)
config_dir = Path(config_dir)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would merge the two lines into one, and why removing config_dir.mkdir(exist_ok=True)?

#.idea/

cache_config_file_path.txt
configuration_HCS_v2.ini
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this is added?

Dockerfile Outdated
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /home/tao/workspace/reef-imaging/reef_imaging/control/squid_microscope/squid-control
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why add tao in the path?

import squid_control.control.gui_hcs as gui

from configparser import ConfigParser
from configparser import ConfigParsers
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be ConfigParsers

Suggested change
from configparser import ConfigParsers
from configparser import ConfigParser

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would remove this file

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be removed

self.current_frame[901:1100, 901:1100] = 200 * 256
blur_intensity = 6


Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove empty lines, keep 1 empty line

cccoolll referenced this pull request in aicell-lab/squid-control Dec 7, 2024
cccoolll and others added 15 commits July 9, 2025 14:34
…creation, listing, removal, and setting active filesets
…ding creation, listing, activation, and removal of filesets.
…ve organization and clarity in Hypha service.
…ealth checks only proceed after initialization.
…n-GoogleMap-style

Feature/video stream in google map style
…deo-stream-in-GoogleMap-style

Revert "Feature/video stream in google map style"
…rvice health checks and initialization process.
…ove error handling and streamline initialization process.
…to 0.20.65 for improved functionality and compatibility.
…ds. Disable Zarr directory cleanup on startup for backward compatibility.
…er. Implement ZIP file validation and integrity checks in artifact management to ensure reliable uploads. Introduce ZIP64 support for large archives in ZarrCanvas export functionality.
cccoolll and others added 30 commits September 8, 2025 15:21
…quid-control into offline-stitching-uploading
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