Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Feb 3, 2025
1 parent 94cf3e2 commit 48f0538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bidscoin/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ def addparticipant(participants_tsv: Path, subid: str='', sesid: str='', data: d
table.loc[subid, 'dummy'] = None
data_added = True
for key in data:
if key not in table or pd.isnull(table.loc[subid, key]) or table.loc[subid, key] == 'n/a':
if key not in table or subid not in table.index or pd.isnull(table.loc[subid, key]) or table.loc[subid, key] == 'n/a':
table.loc[subid, key] = data[key]
data_added = True

Expand Down

0 comments on commit 48f0538

Please sign in to comment.