From c369da4a423a5308278e8a3116a58c5d5530acd1 Mon Sep 17 00:00:00 2001 From: Nikita Vladimirov Date: Fri, 27 Jan 2023 11:41:37 +0100 Subject: [PATCH] revert wrong deletion: preview_acquisition() with z-update --- mesoSPIM/src/mesoSPIM_Core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mesoSPIM/src/mesoSPIM_Core.py b/mesoSPIM/src/mesoSPIM_Core.py index c313511..7028272 100644 --- a/mesoSPIM/src/mesoSPIM_Core.py +++ b/mesoSPIM/src/mesoSPIM_Core.py @@ -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)