Skip to content

Commit b1d80fe

Browse files
authored
Merge pull request #495 from pvelasco/patch-2
BF: Make sure participant sex is not left empty in 'participants.tsv'
2 parents 863435e + dddc20c commit b1d80fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def add_participant_record(studydir, subject, age, sex):
282282
f.write(
283283
'\t'.join(map(str, [participant_id,
284284
age.lstrip('0').rstrip('Y') if age else 'N/A',
285-
sex,
285+
sex if sex else 'n/a',
286286
'control'])) + '\n')
287287

288288

0 commit comments

Comments
 (0)