saveAsPickle ( fileName, fileCollisionMethod='rename' ) ¶īasically just saves a copy of self (with data) to a pickle file. next ( ) ¶ 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 This allows entries to be saved even if nextEntry() is close ( ) ¶ getAllEntries ( ) ¶įetches a copy of all the entries including a final (orphan) entry 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 Only info relating to the trial execution. Does not return data inputs from the subject, Returns the attribute names and values for the current trial Get the names and vals from the extraInfo dict (if it exists) _getLoopInfo ( loop ) ¶ That the current set of loops contain, ready to build a wide-format Returns the attribute names of loop parameters (trialN etc) 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 |