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
+
153
+
# Count files by subject
154
+
sub01_files= [fforfinall_filesif"sub-01"instr(f)]
155
+
sub02_files= [fforfinall_filesif"sub-02"instr(f)]
156
+
157
+
print(f"Total files in defaced dataset: {len(all_files)}")
158
+
print(f"sub-01 files: {len(sub01_files)}")
159
+
print(f"sub-02 files: {len(sub02_files)}")
160
+
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
+
164
+
# Verify that sub-01 exists and was processed
165
+
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
+
# Verify processing artifacts exist for sub-01 in derivatives
0 commit comments