Skip to content

Commit

Permalink
revert wrong deletion: preview_acquisition() with z-update
Browse files Browse the repository at this point in the history
  • Loading branch information
nvladimus committed Jan 27, 2023
1 parent da0deba commit c369da4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mesoSPIM/src/mesoSPIM_Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,14 @@ def preview_acquisition(self, z_update=True):
''' Create a flag when rotation is required: '''
rotationflag = True if current_rotation > target_rotation+0.1 or current_rotation < target_rotation-0.1 else False

''' Remove z-coordinate from dict so that z is not updated during preview. If rotation necessary, z_abs is updated'''
if not z_update and not rotationflag:
del startpoint['z_abs']

''' Check if sample has to be rotated, allow some tolerance '''
if rotationflag:
self.sig_status_message.emit('Rotating sample')
self.move_absolute({'theta_abs':target_rotation}, wait_until_done=False)
self.move_absolute({'theta_abs': target_rotation}, wait_until_done=False)

self.sig_status_message.emit('Setting Filter')
self.set_filter(acq['filter'], wait_until_done=False)
Expand Down

0 comments on commit c369da4

Please sign in to comment.