Skip to content
Snippets Groups Projects
Commit fdb0e5a7 authored by Laura Rævsbæk Birch's avatar Laura Rævsbæk Birch
Browse files

Upload New File

parent 5a3ddb28
No related branches found
No related tags found
1 merge request!1new laura folder
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
import csv
def create_participants_subonly_tsv(filepath, subjects):
participants= []
with open(filepath, 'wt') as out_file:
tsv_writer = csv.writer(out_file, delimiter='\t', lineterminator='\n')
participants.append('participant_id')
tsv_writer.writerow(participants)
participants.clear()
for sub in subjects:
participants.append(sub)
tsv_writer.writerow(participants)
participants.clear()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment