From 1ae0a3b2a8ab407b9f7347ba0d7e33c3b627fc87 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Thu, 14 Jul 2022 14:52:19 -0400 Subject: [PATCH] Dropped obsolete bits --- dandi/bids_utils.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/dandi/bids_utils.py b/dandi/bids_utils.py index 2edabf6b9..a1b13f4d4 100644 --- a/dandi/bids_utils.py +++ b/dandi/bids_utils.py @@ -137,9 +137,6 @@ def summary( entity_sets[entity] = set( [i[entity] for i in match_listing if entity in i.keys()] ) - # subjects = set([i["subject"] for i in match_listing if "subject" in i.keys()]) - # sessions = set([i["session"] for i in match_listing if "session" in i.keys()]) - # sessions = set([i["sample"] for i in match_listing if "sample" in i.keys()]) summary_full = {} for entity in entities: @@ -163,35 +160,4 @@ def summary( ) sub_summary.append(entry) summary_full[entity + "_summary"] = sub_summary - - # subject_summary = [] - # for subject in subjects: - # entry = {} - # entry["subject"] = subject - # entry["sessions"] = set( - # [ - # i["session"] - # for i in match_listing - # if "subject" in i.keys() - # and "session" in i.keys() - # and i["subject"]==subject - # ] - # ) - # subject_summary.append(entry) - # summary_full["subject_summary"] = subject_summary - # session_summary = [] - # for session in sessions: - # entry = {} - # entry["session"] = session - # entry["subjects"] = set( - # [ - # i["subject"] for - # i in match_listing - # if "subject" in i.keys() - # and "session" in i.keys() - # and i["session"]==session - # ] - # ) - # session_summary.append(entry) - # summary_full["session_summary"] = session_summary print_summary(summary_full)