![]() Sometimes columns will be split in the text file but merged in the edat, and column headers will often be different between the two. The outputted csv files will be very different from the ones created by etext_to_rcsv, depending on how you coded the experiment. If you plan to only use the text files outputted by E-Prime, you can use text_to_csv to convert them.If you're unsure, set rem_nulls for your task to False. Also, you will need to know if you want to remove rows with NaNs. You will need to know which columns in the file are necessary for vector creation and result summarization. If you plan to export your edat files to "E-Prime text" format by hand, then you can simply use etext_to_rcsv to convert the resulting files.If used properly the output should be indistinguishable from the output of etext_to_rcsv, only without the tedious step of exporting the "E-Prime text" file by hand. text_to_rcsv: Converts text file produced by successful completion of E-Prime experiment to reduced csv, using information from the variables contained in headers.pickle.Alternatively, if you plan to work directly from the text files, then you probably won't need to rename columns. These variables would then be saved in a task-specific json file. columns to merge, columns to rename, etc.). Output from text_to_csv can be used to deduce information necessary for text_to_rcsv (e.g. text_to_csv: Converts text file produced by successful completion of E-Prime experiment to csv.Make sure, when exporting the edat file as "E-Prime text", that Unicode is turned off. ![]() ![]() etext_to_rcsv: Converts exported "E-Prime text" file to reduced csv based on desired column headers.convert.py: A set of three functions to convert E-Prime files into a more manageable csv format.Eventually it will call convert to automatically convert the text files in pairs. It notes these other files as requiring individual attention. index_eprime_files.py: Looks through a folder and finds pairs of edat/txt files (successful runs) and all other combinations of the two filetypes.I am not currently working on this package, but if you see a bug or have an idea for an improvement, please open an issue and I will address it as soon as I can. With the exception of text_to_csv, most of the functionality of this package is implemented very easily with pandas. Python code to convert E-Prime files to csv-format spreadsheets for analysis.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |