From e30b2cb5a78a2fb934610b6cd20edcf894b8cd7f Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Mon, 22 Jan 2024 14:57:30 -0500 Subject: [PATCH] Update participant table addition code This code change ensures that incomming participant data will be oriented correctly into the participants table --- libbids/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbids/dataset.py b/libbids/dataset.py index 6024045..0691ba1 100644 --- a/libbids/dataset.py +++ b/libbids/dataset.py @@ -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 )