|
@@ -2,7 +2,7 @@
|
|
|
# -*- coding: utf-8 -*-
|
|
|
"""
|
|
|
This experiment was created using PsychoPy3 Experiment Builder (v2023.2.3),
|
|
|
- on Mon Nov 20 21:55:44 2023
|
|
|
+ on 十一月 21, 2023, at 13:15
|
|
|
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)
|
|
@@ -198,7 +198,7 @@ def setupData(expInfo, dataDir=None):
|
|
|
thisExp = data.ExperimentHandler(
|
|
|
name=expName, version='',
|
|
|
extraInfo=expInfo, runtimeInfo=None,
|
|
|
- originPath='/Users/dingkunliu/Projects/MI-BCI-Proj/kraken/backend/general_grasp_training.py',
|
|
|
+ originPath='C:\\Users\\asena\\Desktop\\kraken\\backend\\general_grasp_training.py',
|
|
|
savePickle=True, saveWideText=True,
|
|
|
dataFileName=dataDir + os.sep + filename, sortColumns='time'
|
|
|
)
|
|
@@ -223,9 +223,9 @@ def setupLogging(filename):
|
|
|
Text stream to receive inputs from the logging system.
|
|
|
"""
|
|
|
# this outputs to the screen, not a file
|
|
|
- logging.console.setLevel(logging.EXP)
|
|
|
+ logging.console.setLevel(logging.DEBUG)
|
|
|
# save a log file for detail verbose info
|
|
|
- logFile = logging.LogFile(filename+'.log', level=logging.EXP)
|
|
|
+ logFile = logging.LogFile(filename+'.log', level=logging.DEBUG)
|
|
|
|
|
|
return logFile
|
|
|
|
|
@@ -249,7 +249,7 @@ def setupWindow(expInfo=None, win=None):
|
|
|
if win is None:
|
|
|
# if not given a window to setup, make one
|
|
|
win = visual.Window(
|
|
|
- size=[1493, 933], fullscr=True, screen=0,
|
|
|
+ size=[1440, 900], fullscr=True, screen=0,
|
|
|
winType='pyglet', allowStencil=False,
|
|
|
monitor='testMonitor', color=[1,1,1], colorSpace='rgb',
|
|
|
backgroundImage='', backgroundFit='none',
|
|
@@ -883,9 +883,8 @@ def run(expInfo, thisExp, win, inputs, globalClock=None, thisSession=None):
|
|
|
decision_buffer.append(decision)
|
|
|
|
|
|
# write decision to data
|
|
|
- thisExp.addData('decision.class', decision)
|
|
|
- if controller.real_feedback_model is not None:
|
|
|
- thisExp.addData('decision.prob', controller.real_feedback_model.probability)
|
|
|
+ logging.exp('decision: {}'.format(decision))
|
|
|
+
|
|
|
# using non-slip timing so subtract the expected duration of this Routine (unless ended on request)
|
|
|
if routineForceEnded:
|
|
|
routineTimer.reset()
|