We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d98abf commit 8861c64Copy full SHA for 8861c64
src/ethopy/core/experiment.py
@@ -487,8 +487,12 @@ def prepare_trial(self) -> None:
487
"""Prepare trial conditions, stimuli and update trial index."""
488
old_cond = self.curr_cond
489
self._get_new_cond()
490
-
491
- if not self.curr_cond or self.logger.thread_end.is_set():
+ if not self.curr_cond:
+ log.debug("No conditions left to run, stopping experiment.")
492
+ self.quit = True
493
+ return
494
+ if self.logger.thread_end.is_set():
495
+ log.debug("thread_end is set, stopping experiment.")
496
self.quit = True
497
return
498
if (
0 commit comments