![]() ![]() GL.glColor4f(*self._fillColor.render('rgba1'))įile "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/colors.py", line 346, in renderĪdj = np.clip(self.rgb * self. Please help me :( Traceback (most recent call last):įile "/Users/woojaejung/Desktop/Pilot_experiment/Psychopy/capstonePilot_lastrun.py", line 596, in įile "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/window.py", line 1044, in flipįile "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/visual/shape.py", line 394, in draw When I made multiple loops it stopped at the first loop when I made a single loop, it didn't move to the next routine, it stopped at a random point in the routine.Īnd show the same error all the time. ![]() 0.5 build a standard (but dynamic) global form stimulus xys random(N. What specifically went wrong when you tried that?:Įxperiment stop at the random point during the 27inch routine. To help you get started, weve selected a few psychopy.visual examples. Magnitude estimation of lightness between reference stimulus(white) and random order test stimulus. I suspect I misused this function but have no idea how to fix it.I'm a beginner in programming so I'm using a builder to create the online experiment, Magnitude estimation of lightness between two circles, through psychopy. 'participant': f"",ĭlg = gui.fileOpenDlg(tryFilePath="pilotZone/participant_stimulus_sheet",tryFileName= ,prompt'Select file to open'= ,allowed=None)Įrror message: # Running: /Users/jamesabcd/Desktop/TLBX_experiment/pilotZone/TLBX_Alpha0510core.py #įile "/Users/jamesabcd/Desktop/TLBX_experiment/pilotZone/TLBX_Alpha0510core.py", line 44 # Store info about the experiment sessionĮxpName = 'TLBX_Alpha0510core' # from the Builder filename that created this script This routine will attempt to find a usable driver depending on your platform. _thisDir = os.path.dirname(os.path.abspath(_file_)) Set the memory address or device node for your parallel port of your parallel port, to be used in subsequent commands. What are you trying to achieve: I'm a beginner in programming so I'm using a builder to create the online experiment, Magnitude estimation of lightness between two circles, through psychopy. # Ensure that relative paths start from the same directory as this script Psychopy how to solve TypeError: unsupported operand type (s) for : 'NoneType' and 'int'. Import os # handy system and path functions Sqrt, std, deg2rad, rad2deg, linspace, asarray)įrom numpy.random import random, randint, normal, shuffle, choice as randchoice Import numpy as np # whole numpy lib is available, prepend 'np.'įrom numpy import (sin, cos, tan, log, log10, pi, average, STOPPED, FINISHED, PRESSED, RELEASED, FOREVER) My current code: # - Import packages -įrom psychopy import sound, gui, visual, core, data, event, logging, clock, colors, layoutįrom nstants import (NOT_STARTED, STARTED, PLAYING, PAUSED, If type(filesToOpen) = tuple: # some versions(?) of PyQt return (files, filter)įilesToOpen = [str(fpath) for fpath in filesToOpen If tryFilePath or tryFileName are empty or invalid thenĬurrent path and empty names are used to start search.įdir = os.path.join(tryFilePath, tryFileName)įilesToOpen = (parent=None, Prompt: string (default "Select file to open")Īllowed: string (available since v1.62.01)Į.g. The np.int type translates to the C long integer type and its. If high is None (the default), then results are from 1, low. Return random integers of type np.int from the discrete uniform distribution in the closed interval low, high. """A simple dialogue allowing read access to the file system.ĭefault file path on which to open the dialog Random integers of type np.int between low and high, inclusive. Prompt=_translate("Select file to open"), xlsx files are named "participant_stim1.xlsx, participant_." xlsx files are all in pilotZone/participant_stimulus_sheet folder.Īll the. py file is in folder "pilotZone" and my target. I am trying to use gui.fileOpenDlg() to create a dialog box that allows me to select the condition file (.xslx) before starting my experiment. ![]()
0 Comments
Leave a Reply. |