File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
psychopy/experiment/components/cedrusBox Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -111,18 +111,17 @@ def writeRunOnceInitCode(self, buff):
111111 " devices = pyxid.get_xid_devices()\n "
112112 " core.wait(0.1)\n "
113113 " cedrusBox_%(deviceNumber)s = devices[%(deviceNumber)s]\n "
114+ " cedrusBox_%(deviceNumber)s.clock = core.Clock()\n "
114115 " break # found the device so can break the loop\n "
115116 " except Exception:\n "
116117 " pass\n "
117118 "if not cedrusBox_%(deviceNumber)s:\n "
118119 " logging.error('could not find a Cedrus device.')\n "
119- " core.quit()\n "
120- "%(name)s.clock = core.Clock()\n " )
120+ " core.quit()\n " )
121121 buff .writeOnceIndentedLines (code % self .params )
122122
123123 def writeInitCode (self , buff ):
124- code = ("%(name)s = cedrusBox_%(deviceNumber)s\n "
125- "%(name)s.clock = core.Clock()\n " )
124+ code = ("%(name)s = cedrusBox_%(deviceNumber)s\n " )
126125 buff .writeIndentedLines (code % self .params )
127126
128127 def writeRoutineStartCode (self , buff ):
You can’t perform that action at this time.
0 commit comments