File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/navigate/model/features Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -690,16 +690,16 @@ def signal_func(self):
690690 self .model .pause_data_thread ()
691691
692692 self .current_idx += 1
693+ # Make sure to go back to the beginning if using LoopByCount
694+ if self .current_idx == self .position_count :
695+ self .current_idx = 0
696+
693697 abs_pos_dict = dict (map (lambda k : (f"{ k } _abs" , pos_dict [k ]), pos_dict .keys ()))
694698 self .model .logger .debug (f"MoveToNextPositionInMultiPosition: " f"{ pos_dict } " )
695699 self .model .move_stage (abs_pos_dict , wait_until_done = True )
696700
697701 self .model .logger .debug ("MoveToNextPositionInMultiPosition: move done" )
698702
699- # Make sure to go back to the beginning if using LoopByCount
700- if self .current_idx == self .position_count :
701- self .current_idx = 0
702-
703703 # resume data thread
704704 if should_pause_data_thread :
705705 self .model .resume_data_thread ()
You can’t perform that action at this time.
0 commit comments