Skip to content

Commit

Permalink
fix in closed loop log
Browse files Browse the repository at this point in the history
  • Loading branch information
vigji committed Dec 4, 2019
1 parent 208efa3 commit 3db0915
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stytra/stimulation/stimuli/closed_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ def bout_ended(self):
def update(self):
if self.max_interbout_time is not None:
if self._elapsed - self.prev_bout_t > self.max_interbout_time:
self.abort_experiment()
self._experiment.logger.info(
"Experiment aborted! {} seconds without bouts".format(
self._elapsed - self.prev_bout_t
)
)
self.abort_experiment()


self.get_fish_vel()

Expand Down

0 comments on commit 3db0915

Please sign in to comment.