-
Notifications
You must be signed in to change notification settings - Fork 3
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
Proposed fix to allow inverted scope acquisitions #6
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,17 +153,20 @@ def configure_timepoint(self): | |
pass | ||
assert self.scope.nosepiece.magnification == objective | ||
|
||
self.scope.il.shutter_open = True | ||
self.scope.il.spectra.lamps(**{lamp+'_enabled': False for lamp in self.scope.il.spectra.lamp_specs}) | ||
self.scope.tl.shutter_open = True | ||
self.scope.tl.lamp.enabled = False | ||
self.scope.tl.condenser_retracted = objective == 5 # only retract condenser for 5x objective | ||
if self.TL_FIELD_DIAPHRAGM is not None: | ||
self.scope.tl.field_diaphragm = self.TL_FIELD_DIAPHRAGM | ||
if self.TL_APERTURE_DIAPHRAGM is not None: | ||
self.scope.tl.aperture_diaphragm = self.TL_APERTURE_DIAPHRAGM | ||
if self.IL_FIELD_WHEEL is not None: | ||
self.scope.il.field_wheel = self.IL_FIELD_WHEEL | ||
|
||
if hasattr(self.scope.il, 'shutter_open'): # For non-inverted scope acquisitions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, it's a bit brittle to use Alternately, we add to the scope config a "scope name" attribute that we could test directly, rather than by proxy with the |
||
self.scope.il.shutter_open = True | ||
self.scope.tl.shutter_open = True | ||
self.scope.tl.condenser_retracted = objective == 5 # only retract condenser for 5x objective | ||
if self.TL_FIELD_DIAPHRAGM is not None: | ||
self.scope.tl.field_diaphragm = self.TL_FIELD_DIAPHRAGM | ||
if self.TL_APERTURE_DIAPHRAGM is not None: | ||
self.scope.tl.aperture_diaphragm = self.TL_APERTURE_DIAPHRAGM | ||
if self.IL_FIELD_WHEEL is not None: | ||
self.scope.il.field_wheel = self.IL_FIELD_WHEEL | ||
|
||
self.scope.il.filter_cube = self.experiment_metadata['filter_cube'] | ||
self.scope.camera.sensor_gain = '16-bit (low noise & high well capacity)' | ||
self.scope.camera.readout_rate = self.PIXEL_READOUT_RATE | ||
|
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.
I'd add a second if-block for the tl shutter open. Right now you're using
hasattr(scope.il, 'shutter_open')
as a proxy for "is this our inverted scope", which is a bit brittle. Here just test for each shutter and if it's present, open it.