reading .xpd file
In the block design code, I saved "reaction_time" or rt and reponse_key (kr).
response_keys, rt = exp.keyboard.wait(keys=rk ,duration=rt) ... exp.data.add([kr, rt])
The output .xpd file looks look as follow:
#Expyriment 0.9.0 (Python 2.7.13), .xpd-file, coding: UTF-8 #date: Tue Jun 13 2017 19:19:35 #--EXPERIMENT INFO #e mainfile: Semantic_word_selection.py #e sha1: None #e modules: #e Experiment: semantic verbal fluency #e no between subject factors #e Block 0: unnamed #e block factors: #e n trials: 7 #e trial factors: #e Block 1: unnamed #e block factors: #e n trials: 7 ...... #--SUBJECT INFO #s id: 2 subject_id, 2,276,281 2,None,None 2,276,377 2,None,None 2,276,387 2,None,None 2,275,359 2,275,852 2,275,317 2,275,79 2,None,None 2,276,251
The first question is why the name of the variables (rt, kr) did not save after subject Id in .xpd file?
nevertheless when I open the file using agg = data_preprocessing.Aggregator(data_folder, file_name, suffix='.xpd'), I could see the name of the variables are empty and I get the error below: do you have any idea what this issue happened?
** RuntimeError: Different variables in [u'subject_id', u''] instead of [u'subject_id'] (Pdb)
How I could be able to use the command of agg.set_subject_variables(...) and
agg.set_computed_variables() to analayse this data ?