You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all_files= [fforfinall_filesiff.is_file()] # Only files, not directories
152
-
152
+
153
153
# Count files by subject
154
154
sub01_files= [fforfinall_filesif"sub-01"instr(f)]
155
155
sub02_files= [fforfinall_filesif"sub-02"instr(f)]
156
-
156
+
157
157
print(f"Total files in defaced dataset: {len(all_files)}")
158
158
print(f"sub-01 files: {len(sub01_files)}")
159
159
print(f"sub-02 files: {len(sub02_files)}")
160
-
160
+
161
161
# Verify that sub-02 does NOT appear anywhere in the final defaced dataset
162
-
assertlen(sub02_files) ==0, f"sub-02 should be completely excluded from final defaced dataset, but found {len(sub02_files)} files: {[str(f) forfinsub02_files]}"
163
-
162
+
assert (
163
+
len(sub02_files) ==0
164
+
), f"sub-02 should be completely excluded from final defaced dataset, but found {len(sub02_files)} files: {[str(f) forfinsub02_files]}"
165
+
164
166
# Verify that sub-01 exists and was processed
165
167
assertlen(sub01_files) >0, "sub-01 should exist in final defaced dataset"
166
-
assert (final_defaced_dir/"sub-01").exists(), "sub-01 directory should exist in final defaced dataset"
167
-
168
+
assert (
169
+
final_defaced_dir/"sub-01"
170
+
).exists(), "sub-01 directory should exist in final defaced dataset"
171
+
168
172
# Verify processing artifacts exist for sub-01 in derivatives
0 commit comments