![]() ![]() Otherwise, if the file exists already it will If appendFile=True then the data will be added to the bottom ofĪn existing file. The attributes and data for a single trial. Saves a long, wide-format text file, with one line representing SaveAsWideText ( fileName, delim=None, matrixOnly=False, appendFile=False, encoding='utf-8', fileCollisionMethod='rename' ) ¶ Parameters:įileCollisionMethod: Collision method passed to This can be reloaded if necessary and further analyses carried out. saveAsPickle ( fileName, fileCollisionMethod='rename' ) ¶īasically just saves a copy of self (with data) to a pickle file. nextEntry ( ) ¶Ĭalling nextEntry indicates to the ExperimentHandler that theĬurrent trial has ended and so further addData() calls correspond This method is called by the loop itself if it ends its iterations, Include its values in further entries of the experiment. Informs the experiment handler that the loop is finished and not to nextEntry () addLoop ( loopHandler ) ¶ĭata from this loop will be included in the resulting data files. addData ( 'resp.key', 'k' ) # end of trial - move to next line in data output exp. The data file and is considered part of the same entry until the Multiple data name/value pairs can be added to any given entry of Your data to the loop and had already added the loop to theĮxperiment then the loop will automatically inform the experiment Typically the user does not need to use this function if you added This is the method that allows youĪdd the data with a given name to the current experiment. Script early you may want to tell the Handler not to save out (even in the event of a crash if possible). Inform the ExperimentHandler that the run was aborted.Įxperiment handler will attempt automatically to save data The handler will attempt to populate the file even in the Point that the handler is removed or discarded (unless This is defined in advance and the file will be saved at any ![]() If not provided this will be determined as the path of the The path and filename of the originating script/experiment ) runtimeInfo : Ĭontainining information about the system as detected at To keep track of which version of the experiment was run extraInfo : a dictionaryĬontaining useful information about this run interleaved staircases or loops within loops Usage:Įxp = data.ExperimentHandler(name=”Face Preference”,version=‘0.1.0’)Īs a useful identifier later version : usually a string (e.g. Useful for generating a single data file from an experiment with manyĭifferent loops (e.g. ExperimentHandler ( name='', version='', extraInfo=None, runtimeInfo=None, originPath=None, savePickle=True, saveWideText=True, dataFileName='', autoLog=True ) ¶Ī container class for keeping track of multiple loops/handlers ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |