A class implementing a data file.
Methods
Create a data file.
Filename: {MAINFILE_NAME}_{SUBJECT_ID}_{TIME_STAMP}{ADD_SUFFIX}.xpd
Parameters : | additional_suffix : str
directory : str, optional
delimiter : str, optional
time_stamp : bool, optional
|
---|
Add data.
Parameters : | data : string or numeric or list
|
---|
Adds a text the subject info header.
Notes
The next data.save() might take longer!
Adds a text the subject info header.
Subject information can be extracted afterwards using misc.data_preprocessing.read_data_file. To defined between subject variables use a syntax like this: “gender = female” or “handedness : left”
Parameters : | text : str
|
---|
Notes
The next data.save() might take longer!
Add data variable names to the data file.
Parameters : | variables : str or list of str
|
---|
Notes
The next data.save() might take longer!
Remove all variable names from data file.
Notes
The next data.save() might take longer!
Getter for comment_char
Getter for delimiter
Getter for directory
Getter for filename
Getter for fullpath
Return the next subject number based on the existing data files.
Renames the output file.
Save the new data to data-file.
Returns : | time : int
|
---|
Getter for the standard expyriment outputfile name.
Filename: {MAINFILE_NAME}_{SUBJECT_ID}_{TIME_STAMP}{suffix}
Getter for directory
Getter for variable_names.
Write to file.
Parameters : | content : str
|
---|
Write a comment line to files.
(i.e., text is proceeded by comment char).
Parameters : | comment : str
|
---|
Write a text line to files.
Parameters : | content : str
|
---|
Write a list in a row. Data are separated by a delimiter.
Parameters : | list_ : list
|
---|