Skip to content

Commit eb211b0

Browse files
committed
move code lines
1 parent 95deda9 commit eb211b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/navigate/model/features/common_features.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)