Skip to content

Commit

Permalink
Update participant table addition code
Browse files Browse the repository at this point in the history
This code change ensures that incomming participant data will be
oriented correctly into the participants table
  • Loading branch information
kevincar committed Jan 22, 2024
1 parent 6eb80ba commit e30b2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbids/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def append_participant(self, subject: Subject):
fn: str = "participants.tsv"
fp: str = os.path.join(self.layout.root, fn)
subject_data: dict = subject.to_dict()
subject_table: pd.DataFrame = pd.DataFrame(pd.Series(subject_data))
subject_table: pd.DataFrame = pd.DataFrame(pd.Series(subject_data)).T
participant_data: pd.DataFrame = pd.concat(
[self.participant_table, subject_table], ignore_index=True
)
Expand Down

0 comments on commit e30b2cb

Please sign in to comment.