Chris Oswald
commited on
Commit
•
281d7e6
1
Parent(s):
885d256
debugging
Browse files
SPIDER.py
CHANGED
@@ -287,12 +287,12 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
287 |
print(f'Checkpoint2: {self.config.scan_types}')
|
288 |
image_files = [
|
289 |
file for file in image_files
|
290 |
-
if any(scan_type in file for scan_type in self.config.scan_types)
|
291 |
]
|
292 |
|
293 |
mask_files = [
|
294 |
file for file in mask_files
|
295 |
-
if any(scan_type in file for scan_type in self.config.scan_types)
|
296 |
]
|
297 |
|
298 |
# Generate train/validate/test partitions of patient IDs
|
|
|
287 |
print(f'Checkpoint2: {self.config.scan_types}')
|
288 |
image_files = [
|
289 |
file for file in image_files
|
290 |
+
if any(f'{scan_type}.mha' in file for scan_type in self.config.scan_types)
|
291 |
]
|
292 |
|
293 |
mask_files = [
|
294 |
file for file in mask_files
|
295 |
+
if any(f'{scan_type}.mha' in file for scan_type in self.config.scan_types)
|
296 |
]
|
297 |
|
298 |
# Generate train/validate/test partitions of patient IDs
|