Commit 13bdbc70 authored by Ruben van Bergen's avatar Ruben van Bergen

initial commit

parent 0e76a923
# Byte-compiled / optimized / DLL files
__pycache__/
*.pyc
*.pyo
*.pyd
*.so
# Backup files
*.bak
~$*.xls*
~$*.doc*
~$*.ppt*
# Jupyter Notebook
.ipynb_checkpoints
# Virtual Environment files
.env
.venv
env/
venv/
ENV/
# Spyder project settings
.spyderproject
.spyproject
# OS generated files
.DS_Store
.directory
.gdb_history
ehthumbs.db
Icon?
*.orig
old
Thumbs.db
.Spotlight-V100
.Trashes
# lib files used for local debugging
/lib/
/html/lib/
This diff is collapsed.
This diff is collapsed.
trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,participant,session,date,expName,psychopyVersion,frameRate,
2.5259 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
9.7468 WARNING User requested fullscreen with size [1024 768], but screen is actually [1366, 768]. Using actual size
12.0460 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x0000017B426EF160>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x0000017B427C0908>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1366, 768]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
12.0463 EXP window1: mouseVisible = True
12.0464 EXP window1: recordFrameIntervals = False
12.2127 EXP window1: recordFrameIntervals = True
12.3492 WARNING t of last frame was 21.00ms (=1/47)
12.5293 EXP window1: recordFrameIntervals = False
13.0132 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, image=None, interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
13.0155 EXP Created sequence: random, trialTypes=1, nReps=5, seed=1234
13.0157 EXP New trial (rep=0, index=0): None
13.0162 DEPRECATION Couldn't find image .; check path? (tried: C:\Users\ruben\Dropbox\Kriegeskorte_Postdoc\OcclusionTask)
13.0379 EXP window1: mouseVisible = True
participant,session,date,expName,psychopyVersion,frameRate,
1.9523 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
9.1255 WARNING User requested fullscreen with size [1024 768], but screen is actually [1366, 768]. Using actual size
10.5923 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000001EFE128A5F8>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000001EFE11A0BE0>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1366, 768]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
10.5925 EXP window1: mouseVisible = True
10.5927 EXP window1: recordFrameIntervals = False
10.7539 EXP window1: recordFrameIntervals = True
10.9381 EXP window1: recordFrameIntervals = False
11.2858 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, image=None, interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
11.3070 EXP Created unnamed ImageStim = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1., 1., 1.]), colorSpace='rgb', contrast=1.0, depth=0, flipHoriz=False, flipVert=False, image=Image(...), interpolate=False, mask=None, maskParams=None, name='unnamed ImageStim', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.25, 0.25]), texRes=128, units='height', win=Window(...))
11.3212 EXP window1: mouseVisible = True
participant,session,date,expName,psychopyVersion,frameRate,
2.0237 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
6.9937 WARNING User requested fullscreen with size [1024 768], but screen is actually [1366, 768]. Using actual size
8.4521 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x0000029302A805F8>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x0000029302C8FBE0>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1366, 768]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
8.4522 EXP window1: mouseVisible = True
8.4522 EXP window1: recordFrameIntervals = False
8.6186 EXP window1: recordFrameIntervals = True
8.8028 EXP window1: recordFrameIntervals = False
9.1413 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, image=None, interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
9.1656 EXP Created unnamed ImageStim = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1., 1., 1.]), colorSpace='rgb', contrast=1.0, depth=0, flipHoriz=False, flipVert=False, image=Image(...), interpolate=False, mask=None, maskParams=None, name='unnamed ImageStim', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.25, 0.25]), texRes=128, units='height', win=Window(...))
9.4115 EXP window1: mouseVisible = True
trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,participant,session,date,expName,psychopyVersion,frameRate,
1.9193 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
8.1022 WARNING User requested fullscreen with size [1024 768], but screen is actually [1366, 768]. Using actual size
9.5442 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000001A7DD9141D0>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000001A7DDB6D9B0>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1366, 768]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
9.5445 EXP window1: mouseVisible = True
9.5446 EXP window1: recordFrameIntervals = False
9.7076 EXP window1: recordFrameIntervals = True
9.8934 EXP window1: recordFrameIntervals = False
10.2626 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, image=None, interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
10.2630 EXP Created sequence: random, trialTypes=1, nReps=5, seed=1234
10.2632 EXP New trial (rep=0, index=0): None
10.2636 DEPRECATION Couldn't find image digit_ims/font_Arial-size_512x512-digit0.png; check path? (tried: C:\Users\ruben\Dropbox\Kriegeskorte_Postdoc\OcclusionTask\digit_ims\font_Arial-size_512x512-digit0.png)
10.2871 EXP window1: mouseVisible = True
trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,image.started,image.stopped,participant,session,date,expName,psychopyVersion,frameRate,
0,0,0,0,9.888497600040864,None,asdf,001,2021_Aug_02_1347,doodle,2021.2.0,59.93978450149913,
1,0,1,0,10.824859899992589,None,asdf,001,2021_Aug_02_1347,doodle,2021.2.0,59.93978450149913,
2,0,2,0,11.826159799995366,None,asdf,001,2021_Aug_02_1347,doodle,2021.2.0,59.93978450149913,
3,0,3,0,12.826375000004191,None,asdf,001,2021_Aug_02_1347,doodle,2021.2.0,59.93978450149913,
4,0,4,0,13.827216700010467,None,asdf,001,2021_Aug_02_1347,doodle,2021.2.0,59.93978450149913,
1.9192 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
7.6815 WARNING User requested fullscreen with size [1024 768], but screen is actually [1366, 768]. Using actual size
9.1233 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x0000021393AC41D0>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x0000021393EF2978>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1366, 768]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
9.1236 EXP window1: mouseVisible = True
9.1236 EXP window1: recordFrameIntervals = False
9.2896 EXP window1: recordFrameIntervals = True
9.4732 EXP window1: recordFrameIntervals = False
9.8072 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, image=None, interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
9.8076 EXP Created sequence: random, trialTypes=1, nReps=5, seed=1234
9.8078 EXP New trial (rep=0, index=0): None
9.8885 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_0.png'
9.8885 EXP image: autoDraw = True
10.8120 EXP New trial (rep=1, index=0): None
10.8249 EXP image: autoDraw = False
10.8249 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_0.png'
10.8249 EXP image: autoDraw = True
11.8106 EXP New trial (rep=2, index=0): None
11.8262 EXP image: autoDraw = False
11.8262 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_0.png'
11.8262 EXP image: autoDraw = True
12.8102 EXP New trial (rep=3, index=0): None
12.8264 EXP image: autoDraw = False
12.8264 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_0.png'
12.8264 EXP image: autoDraw = True
13.8109 EXP New trial (rep=4, index=0): None
13.8272 EXP image: autoDraw = False
13.8272 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_0.png'
13.8272 EXP image: autoDraw = True
14.8289 EXP image: autoDraw = False
14.8656 EXP window1: mouseVisible = True
trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,image.started,image.stopped,polygon.started,polygon.stopped,participant,session,date,expName,psychopyVersion,frameRate,
0,0,0,0,11.529625800030772,12.036333700001705,11.956409799982794,None,asdf,001,2021_Aug_02_1355,doodle,2021.2.0,60.38279065356164,
1,0,1,0,12.470162299985532,12.971159000007901,12.954712799983099,None,asdf,001,2021_Aug_02_1355,doodle,2021.2.0,60.38279065356164,
2,0,2,0,13.453965799999423,13.954821599996649,13.938039100030437,13.453965799999423,asdf,001,2021_Aug_02_1355,doodle,2021.2.0,60.38279065356164,
3,0,3,0,14.437956599984318,14.939646499988157,14.923006600001827,14.437956599984318,asdf,001,2021_Aug_02_1355,doodle,2021.2.0,60.38279065356164,
4,0,4,0,15.422749000019394,15.925222199992277,15.908435299992561,15.422749000019394,asdf,001,2021_Aug_02_1355,doodle,2021.2.0,60.38279065356164,
2.0213 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
8.5657 WARNING User requested fullscreen with size [1024 768], but screen is actually [1366, 768]. Using actual size
10.4690 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x0000022C4AEAF390>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x0000022C4ADD1A58>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1366, 768]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
10.4691 EXP window1: mouseVisible = True
10.4691 EXP window1: recordFrameIntervals = False
10.6516 EXP window1: recordFrameIntervals = True
10.8220 WARNING t of last frame was 52.62ms (=1/19)
10.9082 WARNING t of last frame was 22.56ms (=1/44)
11.0861 EXP window1: recordFrameIntervals = False
11.4313 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, image=None, interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
11.4488 EXP Created polygon = ShapeStim(__class__=<class 'psychopy.visual.shape.ShapeStim'>, autoDraw=False, autoLog=True, closeShape=True, color=method-wrapper(...), colorSpace='rgb', contrast=None, depth=-2.0, fillColor=array([1, 1, 1]), fillColorSpace='rgb', fillRGB=UNKNOWN, interpolate=True, lineColor=array([1, 1, 1]), lineColorSpace='rgb', lineRGB=UNKNOWN, lineWidth=1.0, name='polygon', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), units='height', vertices=ndarray(...), win=Window(...), windingRule=None)
11.4493 EXP Created sequence: random, trialTypes=1, nReps=5, seed=1234
11.4495 EXP New trial (rep=0, index=0): None
11.5296 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_0.png'
11.5296 EXP image: autoDraw = True
11.9564 EXP polygon: autoDraw = True
12.0363 EXP image: autoDraw = False
12.4546 EXP New trial (rep=1, index=0): None
12.4702 EXP image: autoDraw = False
12.4702 EXP polygon: autoDraw = False
12.4702 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_1.png'
12.4702 EXP image: autoDraw = True
12.9547 EXP polygon: autoDraw = True
12.9712 EXP image: autoDraw = False
13.4409 EXP New trial (rep=2, index=0): None
13.4540 EXP polygon: autoDraw = False
13.4540 EXP image: autoDraw = False
13.4540 EXP polygon: autoDraw = False
13.4540 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_2.png'
13.4540 EXP image: autoDraw = True
13.9380 EXP polygon: autoDraw = True
13.9548 EXP image: autoDraw = False
14.4244 EXP New trial (rep=3, index=0): None
14.4380 EXP polygon: autoDraw = False
14.4380 EXP image: autoDraw = False
14.4380 EXP polygon: autoDraw = False
14.4380 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_3.png'
14.4380 EXP image: autoDraw = True
14.9230 EXP polygon: autoDraw = True
14.9396 EXP image: autoDraw = False
15.4082 EXP New trial (rep=4, index=0): None
15.4227 EXP polygon: autoDraw = False
15.4227 EXP image: autoDraw = False
15.4227 EXP polygon: autoDraw = False
15.4227 EXP image: image = 'digit_ims/font_Arial-size_512x512-digit_4.png'
15.4227 EXP image: autoDraw = True
15.9084 EXP polygon: autoDraw = True
15.9252 EXP image: autoDraw = False
16.4233 EXP polygon: autoDraw = False
16.4233 EXP image: autoDraw = False
16.4233 EXP polygon: autoDraw = False
16.4622 EXP window1: mouseVisible = True
trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,image.started,image.stopped,polygon.started,polygon.stopped,participant,session,date,expName,psychopyVersion,frameRate,
0,0,0,0,12.91280160000315,13.42038440000033,13.242010699992534,None,asdf,001,2021_Aug_02_1401,doodle,2021.2.0,59.93166592443279,
1,0,1,0,13.753807500004768,14.25514690001728,14.238495099998545,None,asdf,001,2021_Aug_02_1401,doodle,2021.2.0,59.93166592443279,
2,0,2,0,14.738462399982382,15.241217100003269,15.2245152000105,14.738462399982382,asdf,001,2021_Aug_02_1401,doodle,2021.2.0,59.93166592443279,
3,0,3,0,15.739384699962102,16.240759300009813,16.223963299999014,15.739384699962102,asdf,001,2021_Aug_02_1401,doodle,2021.2.0,59.93166592443279,
4,0,4,0,16.72355080000125,17.223993999999948,17.20749999996042,16.72355080000125,asdf,001,2021_Aug_02_1401,doodle,2021.2.0,59.93166592443279,
This source diff could not be displayed because it is too large. You can view the blob instead.
participant,session,date,expName,psychopyVersion,frameRate,
1.9481 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
8.0593 WARNING User requested fullscreen with size [1024 768], but screen is actually [1366, 768]. Using actual size
9.5119 EXP Created window1 = Window(allowGUI=False, allowStencil=False, autoLog=True, backendConf=UNKNOWN, bitsMode=UNKNOWN, blendMode='avg', bpc=(8, 8, 8), color=array([0, 0, 0]), colorSpace='rgb', depthBits=8, fullscr=<method-wrapper '__getattribute__' of attributeSetter object at 0x000001C3E9E65518>, gamma=None, gammaErrorPolicy='raise', lms=UNKNOWN, monitor=<psychopy.monitors.calibTools.Monitor object at 0x000001C3EA085BA8>, multiSample=False, name='window1', numSamples=2, pos=[0.0, 0.0], screen=0, size=array([1366, 768]), stencilBits=0, stereo=False, units='height', useFBO=True, useRetina=False, viewOri=0.0, viewPos=None, viewScale=None, waitBlanking=True, winType='pyglet')
9.5123 EXP window1: mouseVisible = True
9.5123 EXP window1: recordFrameIntervals = False
9.6798 EXP window1: recordFrameIntervals = True
9.8633 EXP window1: recordFrameIntervals = False
10.2149 EXP Created image = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1, 1, 1]), colorSpace='rgb', contrast=1.0, depth=0.0, flipHoriz=False, flipVert=False, image=None, interpolate=True, mask=None, maskParams=None, name='image', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.5, 0.5]), texRes=128.0, units='height', win=Window(...))
10.2380 EXP Created unnamed ImageStim = ImageStim(__class__=<class 'psychopy.visual.image.ImageStim'>, autoLog=True, color=array([1., 1., 1.]), colorSpace='rgb', contrast=1.0, depth=0, flipHoriz=False, flipVert=False, image=Image(...), interpolate=False, mask=None, maskParams=None, name='unnamed ImageStim', opacity=1, ori=0.0, pos=array([0., 0.]), size=array([0.25, 0.25]), texRes=128, units='height', win=Window(...))
10.2543 EXP window1: mouseVisible = True
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no">
<title>doodle [PsychoPy]</title>
<!-- styles -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-ui-dist@1.12.1/jquery-ui.min.css">
<link rel="stylesheet" href="./lib/psychojs-2021.2.0.css">
</head>
<body>
<div id="root"></div>
<!-- external libraries -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-ui-dist@1.12.1/jquery-ui.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/preloadjs@1.0.1/lib/preloadjs.min.js"></script>
<!-- experiment -->
<script src="./doodle.js" type="module"></script>
<!-- legacy browsers -->
<script src="./lib/psychojs-2021.2.0.iife.js" nomodule></script>
<script src="./doodle-legacy-browsers.js" nomodule></script>
</body>
</html>
import os
fonts = ('Arial', 'Times-New-Roman-Bold')
image_size = (512,)*2
linewidth = 10
edge_color= (0,0,0,1)
face_color = (255,255,255,1)
fontsize = 330
size_scale = (image_size[0]/256, image_size[1]/256)
for font in fonts:
for d in range(10):
filename = 'digit_ims\\font_{}-size_{}x{}-digit_{}.png'.format(font, *image_size, d)
cmd = 'convert -size {}x{} xc:"rgba(119, 119, 119, 0.0)"'.format(*image_size)
cmd += ' -font {} -strokewidth {}'.format(font, linewidth)
cmd += ' -stroke "rgba({}, {}, {}, {})"'.format(*edge_color)
cmd += ' -fill "rgba({}, {}, {}, {})"'.format(*face_color)
cmd += ' -draw "gravity Center font-size {}'.format(fontsize)
cmd += ' scale {},{}'.format(*size_scale)
cmd += ' text 0,0 \'{}\'"'.format(d)
cmd += ' PNG8:"{}"'.format(filename)
print(cmd)
os.system(cmd)
# img = digitclutter.DigitImg(
# digits= str(d),
# locations=[(0,0)],
# linewidth=10,
# image_size=(siz, siz)
# )
# img.draw()
......@@ -60,7 +60,8 @@ digit_ims = list()
digit_stims = list()
crop_stims = list()
for d in range(10):
image_path = 'digit_ims\\font_{}-size_512x512-digit_{}.png'.format(font,d)
# image_path = 'digit_ims\\font_{}-size_512x512-digit_{}.png'.format(font,d)
image_path = 'digit_ims/font_' + font + '-size_512x512-digit_' + str(d) +'.png'
tmp = Image.open(image_path).convert('LA')
tmp = tmp.crop(tmp.getbbox())
digit_ims.append(tmp)
......
tmp.png

280 Bytes

from psychopy import locale_setup, sound, gui, visual, core, data, event, logging, clock
from psychopy.constants import (NOT_STARTED, STARTED, PLAYING, PAUSED,
STOPPED, FINISHED, PRESSED, RELEASED, FOREVER)
import time
win = visual.Window([800,600], allowGUI=False)
visual.GratingStim(win, sf=10, size=2, mask="gauss", ori=45).draw()
win.flip()
time.sleep(5)
win.close()
\ No newline at end of file
import torch
a = torch.ones(5)
print(a)
print(torch.cuda.is_available())
import digitclutter
img = digitclutter.DigitImg(
digits=['0', '1', '2'],
locations=[(-0.25, 0.5), (0., 0.25), (0.5, -0.25)],
linewidth=10,
image_size=(32, 32)
)
img.draw()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment