Skip to content

Commit b48e742

Browse files
authored
Update teensy_laser.py
Changed stim_on function into stimulate_on, to avoid confusion with bool stim_on variable
1 parent abc39dd commit b48e742

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dlclivegui/processor/teensy_laser/teensy_laser.py

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

2424

25-
def stim_on(self):
25+
def stimulate_on(self):
2626

2727
# 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
2828
if not self.stim_on:
@@ -45,7 +45,7 @@ def process(self, pose):
4545
# define criteria to stimulate (e.g. if first point is in a corner of the video)
4646
box = [[0,100],[0,100]]
4747
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]):
48-
self.stim_on()
48+
self.stimulate_on()
4949
else:
5050
self.stim_off()
5151

0 commit comments

Comments
 (0)