Chris Oswald
commited on
Commit
•
295b349
1
Parent(s):
b72843c
debugging
Browse files
SPIDER.py
CHANGED
@@ -158,6 +158,7 @@ class CustomBuilderConfig(datasets.BuilderConfig):
|
|
158 |
'Scan type "{item}" not recognized as valid scan type.\
|
159 |
Verify scan type argument.'
|
160 |
)
|
|
|
161 |
return scan_types
|
162 |
|
163 |
def _import_var_types(self):
|
@@ -283,6 +284,7 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
283 |
assert len(mask_files) > 0, "No mask files found--check directory path."
|
284 |
|
285 |
# Filter image and mask data files based on scan types
|
|
|
286 |
image_files = [
|
287 |
file for file in image_files
|
288 |
if any(scan_type in file for scan_type in self.config.scan_types)
|
|
|
158 |
'Scan type "{item}" not recognized as valid scan type.\
|
159 |
Verify scan type argument.'
|
160 |
)
|
161 |
+
print(scan_types)
|
162 |
return scan_types
|
163 |
|
164 |
def _import_var_types(self):
|
|
|
284 |
assert len(mask_files) > 0, "No mask files found--check directory path."
|
285 |
|
286 |
# Filter image and mask data files based on scan types
|
287 |
+
print(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)
|