Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update the CameraRoiWidget to handle multiple cameras #292

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

fdrgsp
Copy link
Collaborator

@fdrgsp fdrgsp commented Apr 24, 2024

Screenshot 2024-04-24 at 2 40 29 PM

Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 93.39934% with 20 lines in your changes missing coverage. Please review.

Project coverage is 90.76%. Comparing base (ecabdf3) to head (8d90af3).

Files with missing lines Patch % Lines
src/pymmcore_widgets/_camera_roi_widget.py 93.39% 20 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #292      +/-   ##
==========================================
- Coverage   90.85%   90.76%   -0.10%     
==========================================
  Files          79       79              
  Lines        9102     9138      +36     
==========================================
+ Hits         8270     8294      +24     
- Misses        832      844      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fdrgsp fdrgsp changed the title [WIP] feat: update the CameraRoiWidget to handle multiple cameras feat: update the CameraRoiWidget to handle multiple cameras May 22, 2024
@tlambert03
Copy link
Member

hey @fdrgsp, is this still something we should get in? I haven't looked closely yet, but I'm wondering why support for two cameras would require a diff of 700+ lines. was this harder than it sounds?

@fdrgsp
Copy link
Collaborator Author

fdrgsp commented Oct 4, 2024

Hey @tlambert03 , I had to change the logic a bit to support the Multi Camera adapter so that each camera could be controlled individually. I also added a CameraInfo dataclass to store the info of each camera. I did it a while ago so I probably need to dig more into the code to exactly remember why the changes!

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