Skip to content

Commit 5407e63

Browse files
authored
Update teensy_laser.py
Changed stim_on to stimulate_on to avoid confusion with bool stim_on variable
1 parent 4910439 commit 5407e63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dlclive/processor/teensy_laser/teensy_laser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def close_serial(self):
3232
self.ser.close()
3333

3434

35-
def stim_on(self):
35+
def stimulate_on(self):
3636

3737
# command to activate PWM signal to laser is the letter 'O' followed by three 16 bit integers -- pulse frequency, pulse width, and max stim duration
3838
if not self.stim_on:
@@ -55,7 +55,7 @@ def process(self, pose, **kwargs):
5555
# define criteria to stimulate (e.g. if first point is in a corner of the video)
5656
box = [[0,100],[0,100]]
5757
if (pose[0][0] > box[0][0]) and (pose[0][0] < box[0][1]) and (pose[0][1] > box[1][0]) and (pose[0][1] < box[1][1]):
58-
self.stim_on()
58+
self.stimulate_on()
5959
else:
6060
self.stim_off()
6161

0 commit comments

Comments
 (0)