-
Notifications
You must be signed in to change notification settings - Fork 21
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
create ExposureWidget as a core widget + properly connect exposure signals #150
Conversation
Test failure is unrelated: https://github.com/tlambert03/napari-micromanager/issues/153 so this is ready for review |
can you rebase on main? |
Codecov Report
@@ Coverage Diff @@
## main #150 +/- ##
==========================================
+ Coverage 80.23% 80.66% +0.43%
==========================================
Files 23 24 +1
Lines 2054 2100 +46
==========================================
+ Hits 1648 1694 +46
Misses 406 406
Continue to review full report at Codecov.
|
@tlambert03 or @fdrgsp if you get a chance to look at this sometime that'd be great - the exposure not prefilling has been driving me nuts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! very minor comment/question. otherwise LGTM!
g_Keyword_CoreDevice, g_Keyword_CoreCamera | ||
).connect(self._camera_updated) | ||
|
||
def setCamera(self, camera: str = None, force: bool = False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you thinking of a use case for this? or just maybe nice to have? maybe "yagni"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean the method on ExposureWidget
or the version on the DefaultCamera version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one with the big warning on default cam... ah, but maybe I see now, it's already there in the superclass and you're just restricting it on the subclass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah exactly.
Adds two new core widgets:
getCameraDevice
) as closely as possible. Though not perfectly, seesetCameraDevice
does not emit apropertyChanged
event micro-manager/mmCoreAndDevices#181There's also a bugfix in here. Previously if you loaded a config before opening napari then the exposure widget would not fill with the correct value - now it does.