Skip to content

Reading Psychopy (GetWrite) time variables in MarkWrite

Mark Torrance edited this page Apr 11, 2016 · 2 revisions

The following is useful if creating custom reports in MarkWrite.

The condition variable columns that should be treated as holding experiment times, and therefore should have their values normalized, are specified using the app setting "Experiment Time Condition Variables Filter". This setting can contain a string that is used to select cond. var. column names, logic used is same as "Start Time Options Filter" and "End Time Options Filter" app settings. If cond vars selected by "Start Time Options Filter" and "End Time Options Filter" are found in "Experiment Time Condition Variables Filter" results, they are ignored, as they already have had their values normalized. Below is description of how filter str can be used for all three of these app settings. def getFilteredStringList(slist, filterstr):

Given a list of strings slist, find those that match filterstr.
filterstr has two special characters which can not be
used in condition variable names themselves:
a) ',': use to indicate more than one possible filter string
b) '*': Each filter string can have <= 1 '*' char, and is
        used as you would when searching for files in your OS.
filterstr Examples:
a) "DV_*_START":
   Returns any elements of slist that start with 'DV_'
   and end with '_START'.
b) "*_TIME":
   Returns any elements of slist that end with '_TIME'.
c) "RT_*":
   Returns any elements of slist that start with 'RT_'.
d) "*_TIME, RT_*":
   Returns any elements of slist that end with '_TIME'
   OR start with 'RT_.
Clone this wiki locally