Browse Source

Fix: trigger data type error

DESKTOP-4GKCI80\Neuracle 1 year ago
parent
commit
ad092dd749
1 changed files with 2 additions and 2 deletions
  1. 2 2
      backend/free_grasp.py

+ 2 - 2
backend/free_grasp.py

@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 """
 This experiment was created using PsychoPy3 Experiment Builder (v2023.2.3),
-    on Wed Nov 22 18:42:41 2023
+    on 十一月 24, 2023, at 12:38
 If you publish work using this script the most relevant publication is:
 
     Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. (2019) 
@@ -686,7 +686,7 @@ def run(expInfo, thisExp, win, inputs, globalClock=None, thisSession=None):
                 trigger.send_trigger(0)
                 hand_device.extend()
             else:
-                trigger.send_trigger(decision)
+                trigger.send_trigger(int(decision))
                 hand_device.start(model=fingermodel_ids_inverse[decision])
         else:
             feedback_time = 0