#win = visual.Window(size =, fullscr = True, allowGUI = False, units = "pix", color = (1,1,1), monitor="testMonitor") # Create white window for stimuli to be presented on throughout task # Use trialhandler to sequentially present films listed in filmlist csv fileįilmDict = data.TrialHandler(nReps = 1, method = 'sequential', trialList = data.importConditions('references\\filmList.csv'), name = 'filmList') # writes headers using fieldnames as specified above when creating writer variable Writer = csv.DictWriter(outputfile, fieldnames) # create variable which calls DictWriter to write to outputfile and specifies fieldnames 'TrialDuration','Focus','Future','Past','Self','Other','Emotion','Modality','Detailed','Deliberate','Problem','Diversity','Intrusive','Source'] # Create list of headers for output csv fileįieldnames = ['Participant_number', 'videoName','Video_startTime','Video_endTime','Questionnaire_startTime','Questionnaire_endTime', Outputfile = open(completeName, "w", newline = '') # update filename to include absolute path so that it is stored in output directoryĬompleteName = os.path.join(save_path, filename) # Create a dictionary to store information from the dialogue box # User should set directory for output files to be stored # User should set cwd to the experiment directory """Quits experiment if user presses 'escape' key.""" UPDATE: issue only occurs when in fullscreen mode from psychopy import visualįrom psychopy import gui, data, core,eventįrom time import localtime, strftime, gmtime If anyone has any more recommendations to fix it, that would be super helpful! I have tried both ratingScale and Slider using Psychop圓 and it remains an issue… ThisExp.abort() # or data files will save again on exit Slider = visual.Slider(win=win, name='radio', Monitor='testMonitor', color=, colorSpace='rgb', WinType='pyglet', allowGUI=False, allowStencil=False, from _future_ import absolute_import, divisionįrom psychopy import locale_setup, visual, core, event E.g., the following should work in Coder. Waiver() for the default breaks computed by theĪ function that takes the limits as input and returns breaksĪs output (e.g., a function returned by scales::extended_breaks()).Īlso accepts rlang lambda function notation.Hi so you have to manually focus the window using the mouse? What happens when you set the window to fullscreen using the fullscr window param? By the way, the same thing can be achieved using the new Slider component. Waiver() for the default breaks (one minor break betweenĪ function that given the limits returns a vector of minor breaks. May choose a slightly different number to ensure nice break labels.ĪlsoĪn integer guiding the number of major breaks. Only have an effect if breaks = waiver(). Number of breaks given by the transformation. Waiver() for the default labels computed by theĪ character vector giving labels (must be same length as breaks)Ī function that takes the breaks as input and returns labelsĪs output. Use NA to refer to the existing minimum or maximumĪ function that accepts the existing (automatic) limits and returns Also accepts rlang lambda functionĪ numeric vector of length two providing limits of the scale. If the purpose is to zoom, use the limit argument in the coordinate systemįor position scales, a vector of range expansion constants used to add some Note that setting limits on positional scales will remove data outside of the limits. Padding around the data to ensure that they are placed some distanceĪway from the axes. To generate the values for the expand argument. The default ( scales::censor()) replaces out of oobįunction that handles limits outside of the scale limits The defaults are toĮxpand the scale by 5% on each side for continuous variables, and byĠ.6 units on each side for discrete variables. Scales::squish() for squishing out of bounds values into range. Scales::squish_infinite() for squishing infinite values into range. Built-in transformations include "asn", "atanh", transįor continuous scales, the name of a transformation object Missing values will be replaced with this value. Transformation objectsĪre defined in the scales package, and are called _trans (e.g., "logit", "modulus", "probability", "probit", "pseudo_log", "reciprocal",Ī transformation object bundles together a transform, its inverse,Īnd methods for generating breaks and labels. guideĪ function used to create a guide or its name. Seeįor position scales, The position of the axis.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |