Chris Oswald
commited on
Commit
•
5044990
1
Parent(s):
ce03e34
debugging
Browse files
SPIDER.py
CHANGED
@@ -37,10 +37,10 @@ def import_csv_data(filepath: str) -> List[Dict[str, str]]:
|
|
37 |
|
38 |
def subset_file_list(all_files: List[str], subset_ids: Set[int]):
|
39 |
"""Subset files pertaining to individuals in person_ids arg."""
|
40 |
-
return [
|
41 |
file for file in all_files
|
42 |
if any(str(id_val) == file.split('_')[0] for id_val in subset_ids)
|
43 |
-
]
|
44 |
|
45 |
def standardize_3D_image(
|
46 |
image: np.ndarray,
|
|
|
37 |
|
38 |
def subset_file_list(all_files: List[str], subset_ids: Set[int]):
|
39 |
"""Subset files pertaining to individuals in person_ids arg."""
|
40 |
+
return ([
|
41 |
file for file in all_files
|
42 |
if any(str(id_val) == file.split('_')[0] for id_val in subset_ids)
|
43 |
+
])
|
44 |
|
45 |
def standardize_3D_image(
|
46 |
image: np.ndarray,
|