Skip to content

Commit

Permalink
fix issue when loading participants.tsv with an empty row
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyman192 committed Jan 22, 2019
1 parent dd5b79c commit 91c01d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BIDSHandler/Subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def _load_subject_info(self):
for col_name in column_names:
val = row.get(col_name)
if val is not None:
self.subject_data[col_name] = val.item()
if not val.empty:
# Ignore empty rows.
self.subject_data[col_name] = val.item()
else:
self.subject_data[col_name] = "n/a"

Expand Down

0 comments on commit 91c01d0

Please sign in to comment.